aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/xattr.c
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@suse.de>2020-12-18 10:29:49 +0100
committerSteve French <stfrench@microsoft.com>2020-12-18 07:40:21 -0600
commit0bf1bafb17df03fbd0e8b9a086c39e6f24af7193 (patch)
treec44e56c9b2b33a35ee274a893fee87d15d88d7a2 /fs/cifs/xattr.c
parentcifs: Re-indent cifs_swn_reconnect() (diff)
downloadlinux-dev-0bf1bafb17df03fbd0e8b9a086c39e6f24af7193.tar.xz
linux-dev-0bf1bafb17df03fbd0e8b9a086c39e6f24af7193.zip
cifs: Avoid error pointer dereference
The patch 7d6535b72042: "cifs: Simplify reconnect code when dfs upcall is enabled" leads to the following static checker warning: fs/cifs/connect.c:160 reconn_set_next_dfs_target() error: 'server->hostname' dereferencing possible ERR_PTR() Avoid dereferencing the error pointer by early returning on error condition. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Samuel Cabrero <scabrero@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/xattr.c')
0 files changed, 0 insertions, 0 deletions