Searched hist:"266191 aa8d14b84958aaeb5e96ee4e97839e3d87" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/include/net/bluetooth/ |
H A D | bluetooth.h | diff 266191aa8d14b84958aaeb5e96ee4e97839e3d87 Thu Sep 16 15:10:48 CDT 2021 Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Bluetooth: Fix passing NULL to PTR_ERR
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>
|
/openbmc/linux/net/bluetooth/rfcomm/ |
H A D | sock.c | diff 266191aa8d14b84958aaeb5e96ee4e97839e3d87 Thu Sep 16 15:10:48 CDT 2021 Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Bluetooth: Fix passing NULL to PTR_ERR
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>
|
/openbmc/linux/net/bluetooth/ |
H A D | sco.c | diff 266191aa8d14b84958aaeb5e96ee4e97839e3d87 Thu Sep 16 15:10:48 CDT 2021 Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Bluetooth: Fix passing NULL to PTR_ERR
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>
|