commit | 4bf01ca21e2e0e4561d1a03c48c3d740418702db | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Thu Apr 26 09:31:52 2018 +0200 |
committer | Johannes Berg <johannes.berg@intel.com> | Mon May 07 15:01:40 2018 +0200 |
tree | b243a583f6261adff678a69d677e942704436d45 | |
parent | e8f90c74e6ab64824f3a21521640de7b21050b9d [diff] |
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>