]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: Fix leak in device creation failure
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Tue, 5 Dec 2017 20:41:18 +0000 (13:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 23:03:54 +0000 (18:03 -0500)
commit988ec8ad3b8a2e2cdc0d0e24f61600d52e39b524
tree29a1de2d109d93edd9a65a0a9c084a266a17b534
parent66e98e88295995b164df7d1bfa6135111e093de7
net: qualcomm: rmnet: Fix leak in device creation failure

If the rmnet device creation fails in the newlink either while
registering with the physical device or after subsequent
operations, the rmnet endpoint information is never freed.

Fixes: d1878d04ca05 ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c