Home
last modified time | relevance | path

Searched hist:"1 f4f554a72be0d8c164c2f5bc6ba939a1c624fb4" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_map_data.cdiff 1f4f554a72be0d8c164c2f5bc6ba939a1c624fb4 Sat Sep 09 03:58:03 CDT 2017 Dan Carpenter <dan.carpenter@oracle.com> 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: ceed73a2cf4a ("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>