wusb: Fix potential memory leak in wusb_dev_sec_add()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 8 Aug 2012 12:49:48 +0000 (16:49 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 19:06:38 +0000 (12:06 -0700)
commite58ba01e2cfe7b7d54d28f78c7af3cff4d5419a3
tree3983d97c1e39edc582e9866ab71c7d80eee9a89a
parente4d37aeb373a5edceecc1dadc76fabbe8bc18e44
wusb: Fix potential memory leak in wusb_dev_sec_add()

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/security.c