]> git.ipfire.org Git - people/ms/u-boot.git/commit
usbtty: avoid potential NULL pointer dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sat, 15 Apr 2017 13:05:46 +0000 (15:05 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 18 Apr 2017 14:29:23 +0000 (10:29 -0400)
commit73be5b3fa73e329ad0d9e12db427cd665e1a483c
treec4f4521184f4f43b60fc3be70836e8cd93bec09d
parent6568c731c47bfbb137183f8f745e8168604ea8ab
usbtty: avoid potential NULL pointer dereference

If current_urb is NULL it should not be dereferenced.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/serial/usbtty.c