summaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2015-03-30 22:03:06 -0500
committerSteve French <smfrench@gmail.com>2015-04-01 00:01:47 -0500
commit4c5930e8056127e9a89bb7836bfa34318a89ab14 (patch)
treec561884ca66097bbb1c7d493a1235e1dfbd06bda /fs/cifs/inode.c
parentdfebe40076f3b4966e818eaf94021a7ff788df04 (diff)
downloadop-kernel-dev-4c5930e8056127e9a89bb7836bfa34318a89ab14.zip
op-kernel-dev-4c5930e8056127e9a89bb7836bfa34318a89ab14.tar.gz
Fix warning
Coverity reports a warning due to unitialized attr structure in one code path. Reported by Coverity (CID 728535) Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 2d4f372..3e126d7 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -771,6 +771,8 @@ cifs_get_inode_info(struct inode **inode, const char *full_path,
cifs_buf_release(srchinf->ntwrk_buf_start);
}
kfree(srchinf);
+ if (rc)
+ goto cgii_exit;
} else
goto cgii_exit;
OpenPOWER on IntegriCloud