linux/net/rfkill
Johan Hovold d1d5c31fc3 rfkill: gpio: fix memory leak in probe error path
commit 4bf01ca21e upstream.

Make sure to free the rfkill device in case registration fails during
probe.

Fixes: 5e7ca3937f ("net: rfkill: gpio: convert to resource managed allocation")
Cc: stable <stable@vger.kernel.org>	# 3.13
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-16 10:10:26 +02:00
..
core.c rfkill: Add rfkill-any LED trigger 2017-01-09 11:40:33 +01:00
input.c rfkill: don't use [delayed_]work_pending() 2012-12-28 13:40:16 -08:00
Kconfig rfkill: remove rfkill-regulator 2017-01-24 11:07:35 +01:00
Makefile rfkill: remove rfkill-regulator 2017-01-24 11:07:35 +01:00
rfkill-gpio.c rfkill: gpio: fix memory leak in probe error path 2018-05-16 10:10:26 +02:00
rfkill.h rfkill: rewrite 2009-06-03 14:06:13 -04:00