YueHaibing af982da9a6 cifs: Fix inconsistent IS_ERR and PTR_ERR
Fix inconsistent IS_ERR and PTR_ERR in cifs_find_swn_reg(). The proper
pointer to be passed as argument to PTR_ERR() is share_name.

This bug was detected with the help of Coccinelle.

Fixes: bf80e5d4259a ("cifs: Send witness register and unregister commands to userspace daemon")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Samuel Cabrero <scabrero@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
2021-02-19 21:29:10 -06:00
..
2020-10-22 12:17:52 -05:00
2020-06-01 00:10:18 -05:00
2021-01-28 21:40:43 -06:00
2020-12-13 19:12:07 -06:00
2021-01-28 21:40:43 -06:00
2020-06-01 00:10:18 -05:00
2021-01-28 21:40:43 -06:00
2020-07-09 10:06:52 -05:00
2020-12-14 09:16:22 -06:00
2020-08-02 18:00:25 -05:00
2020-10-19 15:11:11 -05:00
2019-01-24 09:37:33 -06:00