diff options
author | Steve French <[email protected]> | 2021-09-23 19:18:37 -0500 |
---|---|---|
committer | Steve French <[email protected]> | 2021-09-23 21:12:53 -0500 |
commit | 9ed38fd4a15417cac83967360cf20b853bfab9b6 (patch) | |
tree | 4de3dbe567271625429f6ad2702217cbab05dcbd /drivers/fpga/fpga-bridge.c | |
parent | 1db1aa98871defd9316d13f59708f2277c4f9232 (diff) |
cifs: fix incorrect check for null pointer in header_assemble
Although very unlikely that the tlink pointer would be null in this case,
get_next_mid function can in theory return null (but not an error)
so need to check for null (not for IS_ERR, which can not be returned
here).
Address warning:
fs/smbfs_client/connect.c:2392 cifs_match_super()
warn: 'tlink' isn't an ERR_PTR
Pointed out by Dan Carpenter via smatch code analysis tool
CC: [email protected]
Reported-by: Dan Carpenter <[email protected]>
Acked-by: Ronnie Sahlberg <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions