Content-Type: multipart/mixed; boundary="===============6353404612745778232==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] usb: usbip: fix odd_ptr_err.cocci warnings Date: Fri, 19 Feb 2021 18:10:10 +0100 Message-ID: List-Id: --===============6353404612745778232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot PTR_ERR should access the value just tested by IS_ERR Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci CC: Tetsuo Handa Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://github.com/0day-ci/linux/commits/UPDATE-20210219-175233/Tet= suo-Handa/usb-usbip-serialize-attach-detach-operations/20210219-083847 head: 32963105fe23b600644ac10f0f9a42124a289990 commit: 32963105fe23b600644ac10f0f9a42124a289990 usb: usbip: serialize atta= ch/detach operations :::::: branch date: 3 hours ago :::::: commit date: 3 hours ago The above link doesn't work for me, so I don't know whether the goto label is correct. usbip_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/usbip/usbip_common.c +++ b/drivers/usb/usbip/usbip_common.c @@ -775,7 +775,7 @@ int usbip_prepare_threads(struct usbip_t } tx =3D kthread_create(tx_fn, ud, tx_name); if (IS_ERR(tx)) { - err =3D PTR_ERR(rx); + err =3D PTR_ERR(tx); goto out_rx; } uti->tcp_socket =3D socket; --===============6353404612745778232==--