Re: [PATCH] usbnet: make sure no NULL pointer is passed through

2017-04-10 Thread Oliver Neukum
Am Donnerstag, den 06.04.2017, 13:19 -0700 schrieb David Miller: > From: Oliver Neukum > Date: Wed,  5 Apr 2017 14:14:39 +0200 > > > Coverity reports: >  ... > > It is valid to offer commands without a buffer, but then you need a size > > of zero. This should actually be checked. > > > > Signed-

Re: [PATCH] usbnet: make sure no NULL pointer is passed through

2017-04-06 Thread David Miller
From: Oliver Neukum Date: Wed, 5 Apr 2017 14:14:39 +0200 > Coverity reports: ... > It is valid to offer commands without a buffer, but then you need a size > of zero. This should actually be checked. > > Signed-off-by: Oliver Neukum Applied, thanks Oliver. I had to apply this by hand via my

[PATCH] usbnet: make sure no NULL pointer is passed through

2017-04-05 Thread Oliver Neukum
Coverity reports: ** CID 751368: Null pointer dereferences (FORWARD_NULL) /drivers/net/usb/usbnet.c: 1925 in __usbnet_read_cmd() *** CID 751368: Null pointer dereferences (FORWARD_NULL) /d