]> 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)
commitb1445490edef18438506ab304020f96a48e3547f
tree29a1de2d109d93edd9a65a0a9c084a266a17b534
parentbb5ea3ff514aa41a5114b0a6f5fb899fdbea1fd7
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: 90bb99b4fbce ("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