linux_dsm_epyc7002/drivers/net/ethernet/qualcomm/rmnet
Dan Carpenter 1f4f554a72 net: qualcomm: rmnet: Fix a double free
There is a typo here so we accidentally free "skb" instead of "skbn".
It leads to a double free and a leak.  After discussing with Subash,
it's better to just move the check before the allocation and avoid the
need to free.

Fixes: ceed73a2cf ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-09 14:33:27 -07:00
..
Kconfig drivers: net: ethernet: qualcomm: rmnet: Initial implementation 2017-08-30 11:41:13 -07:00
Makefile drivers: net: ethernet: qualcomm: rmnet: Initial implementation 2017-08-30 11:41:13 -07:00
rmnet_config.c net: qualcomm: rmnet: Rename real_dev_info to port 2017-09-03 21:27:18 -07:00
rmnet_config.h net: qualcomm: rmnet: Rename real_dev_info to port 2017-09-03 21:27:18 -07:00
rmnet_handlers.c net: qualcomm: rmnet: Rename real_dev_info to port 2017-09-03 21:27:18 -07:00
rmnet_handlers.h drivers: net: ethernet: qualcomm: rmnet: Initial implementation 2017-08-30 11:41:13 -07:00
rmnet_map_command.c net: qualcomm: rmnet: Rename real_dev_info to port 2017-09-03 21:27:18 -07:00
rmnet_map_data.c net: qualcomm: rmnet: Fix a double free 2017-09-09 14:33:27 -07:00
rmnet_map.h net: qualcomm: rmnet: Rename real_dev_info to port 2017-09-03 21:27:18 -07:00
rmnet_private.h net: qualcomm: rmnet: Fix memory corruption if mux_id is greater than 32 2017-09-03 21:27:18 -07:00
rmnet_vnd.c net: qualcomm: rmnet: Rename real_dev_info to port 2017-09-03 21:27:18 -07:00
rmnet_vnd.h net: qualcomm: rmnet: Rename real_dev_info to port 2017-09-03 21:27:18 -07:00