rndis_wlan: Fix potential memory leak in update_pmkid()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 8 Aug 2012 15:44:21 +0000 (19:44 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 18:50:25 +0000 (14:50 -0400)
commit60f53cf99060472973f16452116d9c467f8b08c6
treebe40e99bdcfe442e9122a210418c1fa69162fb31
parentf41a9b3b15e0f74656f69e6da403d870c53ea4e6
rndis_wlan: Fix potential memory leak in update_pmkid()

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>
Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rndis_wlan.c