[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190118212931.18482-1-skhan@linuxfoundation.org>
Date: Fri, 18 Jan 2019 14:29:30 -0700
From: Shuah Khan <skhan@...uxfoundation.org>
To: valentina.manea.m@...il.com, shuah@...nel.org,
gregkh@...uxfoundation.org
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] usbip: Fix vep_free_request() null pointer checks on input args
From: Shuah Khan <shuah@...nel.org>
Fix vep_free_request() to return when usb_ep and usb_request are null
instead of calling WARN_ON.
Signed-off-by: Shuah Khan <shuah@...nel.org>
---
drivers/usb/usbip/vudc_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/usbip/vudc_dev.c b/drivers/usb/usbip/vudc_dev.c
index 1634d8698e15..bfc8218e3fb6 100644
--- a/drivers/usb/usbip/vudc_dev.c
+++ b/drivers/usb/usbip/vudc_dev.c
@@ -297,7 +297,7 @@ static void vep_free_request(struct usb_ep *_ep, struct usb_request *_req)
{
struct vrequest *req;
- if (WARN_ON(!_ep || !_req))
+ if (!_ep || !_req)
return;
req = to_vrequest(_req);
--
2.17.1
Powered by blists - more mailing lists