net/core: Fix potential memory leak in dev_set_alias()
commit7364e445f62825758fa61195d237a5b8ecdd06ec
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 8 Aug 2012 00:33:25 +0000 (8 00:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Aug 2012 23:06:23 +0000 (8 16:06 -0700)
tree78f93fbe4f9d04b0c547a08b4c40f78071c741eb
parent47dffc7547ed3b105dabd570ed864347687beac2
net/core: Fix potential memory leak in dev_set_alias()

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: David S. Miller <davem@davemloft.net>
net/core/dev.c