浏览代码

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>
Steve French 10 年之前
父节点
当前提交
4c5930e805
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs/cifs/inode.c

+ 2 - 0
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);
 				cifs_buf_release(srchinf->ntwrk_buf_start);
 			}
 			}
 			kfree(srchinf);
 			kfree(srchinf);
+			if (rc)
+				goto cgii_exit;
 	} else
 	} else
 		goto cgii_exit;
 		goto cgii_exit;