]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/core: Fix potential memory leak in dev_set_alias()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 8 Aug 2012 00:33:25 +0000 (00:33 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Jun 2013 09:43:24 +0000 (11:43 +0200)
commitb680135dfdf54a1d59efca19c432412f4ed481ea
treeed7c30720fc4aa99bd8397115fd78ba4b659a035
parentbe1a41d754084db22bb7599edd140dff61853ced
net/core: Fix potential memory leak in dev_set_alias()

[ Upstream commit 7364e445f62825758fa61195d237a5b8ecdd06ec ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/core/dev.c