diff options
author | Johan Hovold <johan@kernel.org> | 2018-04-26 09:31:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-16 10:08:43 +0200 |
commit | dd4e7140c4dec8ce0bacb0d0ff152653e0b85660 (patch) | |
tree | 0354734287a6fc2925ac2854024439fa245d5cfe /net/x25 | |
parent | 63e2ae9d75d4c348f47600dcef0f3d90eef7f34e (diff) |
rfkill: gpio: fix memory leak in probe error path
commit 4bf01ca21e2e0e4561d1a03c48c3d740418702db upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions