Skip to content

Commit 6975945

Browse files
akpm00Linus Torvalds
authored andcommitted
fs/afs/security.c: fix uninitialized var warning
fs/afs/security.c: In function 'afs_permission': fs/afs/security.c:290: warning: 'access' may be used uninitialized in this function Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8aa84ab commit 6975945

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/afs/security.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static int afs_check_permit(struct afs_vnode *vnode, struct key *key,
287287
int afs_permission(struct inode *inode, int mask, struct nameidata *nd)
288288
{
289289
struct afs_vnode *vnode = AFS_FS_I(inode);
290-
afs_access_t access;
290+
afs_access_t uninitialized_var(access);
291291
struct key *key;
292292
int ret;
293293

0 commit comments

Comments
 (0)