linux-stable/net/bluetooth/rfcomm
Luiz Augusto von Dentz 5ae749f40d Bluetooth: Fix passing NULL to PTR_ERR
commit 266191aa8d upstream.

Passing NULL to PTR_ERR will result in 0 (success), also since the likes of
bt_skb_sendmsg does never return NULL it is safe to replace the instances of
IS_ERR_OR_NULL with IS_ERR when checking its return.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-29 17:25:30 +02:00
..
core.c Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg 2022-07-29 17:25:30 +02:00
Kconfig
Makefile
sock.c Bluetooth: Fix passing NULL to PTR_ERR 2022-07-29 17:25:30 +02:00
tty.c