Johan Hovold 4bf01ca21e rfkill: gpio: fix memory leak in probe error path
Make sure to free the rfkill device in case registration fails during
probe.

Fixes: 5e7ca3937fbe ("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>
2018-05-07 15:01:40 +02:00
..
2018-03-27 13:18:09 -04:00
2018-03-27 13:18:09 -04:00
2018-04-10 12:25:30 -07:00
2018-04-07 22:32:31 -04:00
2017-11-01 12:19:03 +09:00
2018-03-27 13:18:09 -04:00
2018-03-27 13:18:09 -04:00
2018-03-27 13:18:09 -04:00
2017-11-08 16:12:33 +09:00
2018-03-27 13:18:09 -04:00
2018-04-11 10:24:01 -04:00
2018-04-12 21:46:10 -04:00
2018-02-01 09:51:57 -08:00