Re: [U-Boot] [PATCH 1/1] usbtty: avoid potential NULL pointer dereference

2017-04-16 Thread Marek Vasut
On 04/15/2017 03:05 PM, Heinrich Schuchardt wrote: > If current_urb is NULL it should not be dereferenced. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt Applied, thanks. > --- > drivers/serial/usbtty.c | 13 +++-- > 1 file changed, 7 insertions(+),

Re: [U-Boot] [PATCH 1/1] usbtty: avoid potential NULL pointer dereference

2017-04-15 Thread Tom Rini
On Sat, Apr 15, 2017 at 03:05:46PM +0200, Heinrich Schuchardt wrote: > If current_urb is NULL it should not be dereferenced. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature

[U-Boot] [PATCH 1/1] usbtty: avoid potential NULL pointer dereference

2017-04-15 Thread Heinrich Schuchardt
If current_urb is NULL it should not be dereferenced. The problem was indicated by cppcheck. Signed-off-by: Heinrich Schuchardt --- drivers/serial/usbtty.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index 2