]> asedeno.scripts.mit.edu Git - linux.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)
commit6296928fa3b9f656d7760fbf346c0cf834788a78
tree29a1de2d109d93edd9a65a0a9c084a266a17b534
parentc20a548792f15f8d8e38cd74356301c6db0d241f
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: ceed73a2cf4a ("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