can: softing: Fix potential memory leak in softing_load_fw()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 8 Aug 2012 15:15:01 +0000 (19:15 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 24 Aug 2012 08:54:05 +0000 (10:54 +0200)
commitef813c412c0cf254ddce7d922289e2d6a69960f0
tree97545ead4ddca18f1e1fe2c1896439a24b530c23
parenta0dfb2634e5671770f598cda08002d8cda66ac77
can: softing: Fix potential memory leak in softing_load_fw()

Do not leak memory by updating pointer with potentially NULL realloc return value.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/softing/softing_fw.c