linux/drivers/staging/gdm72xx
Javier Martinez Canillas 2da049bd5f staging: gdm72xx: fix an skb memory leak
The NLMSG_PUT() macro contains a hidden goto that jumps to the
nlmsg_failure label. Since the sk_buff was allocated before the macro,
jumping to the nlmsg_failure label leaks the memory allocated for it.

Calling kfree() before returning would fix it, but is better to avoid
using this error prone macro and use nlmsg_put() instead.

Also, use nlmsg_data() instead of NLMSG_DATA() to check type.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-26 15:39:37 -07:00
..
gdm_qos.c staging/gdm72xx: Remove version.h includes 2012-06-12 10:34:47 -07:00
gdm_qos.h
gdm_sdio.c staging/gdm72xx: Remove version.h includes 2012-06-12 10:34:47 -07:00
gdm_sdio.h
gdm_usb.c staging: gdm72xx: Simplify spinlock fix for gdm_usb_send_complete 2012-06-12 14:37:28 -07:00
gdm_usb.h
gdm_wimax.c staging/gdm72xx: Remove version.h includes 2012-06-12 10:34:47 -07:00
gdm_wimax.h staging/gdm72xx: Remove version.h includes 2012-06-12 10:34:47 -07:00
hci.h
Kconfig staging: gdm72xx depends on NET 2012-05-17 13:17:41 -07:00
Makefile
netlink_k.c staging: gdm72xx: fix an skb memory leak 2012-06-26 15:39:37 -07:00
netlink_k.h
sdio_boot.c staging/gdm72xx: Remove version.h includes 2012-06-12 10:34:47 -07:00
sdio_boot.h
TODO
usb_boot.c staging/gdm72xx: Remove version.h includes 2012-06-12 10:34:47 -07:00
usb_boot.h
usb_ids.h
wm_ioctl.h