commit | a81d678949471d5b7f399cfcf2e48e0382427805 | [log] [tgz] |
---|---|---|
author | Todd Poynor <toddpoynor@google.com> | Sun Aug 05 13:07:35 2018 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Aug 08 11:20:06 2018 +0200 |
tree | 669e5a74bc7885ad1bc34a570d6fbcdc7a979071 | |
parent | 2bc7596438aba6d9eacc4fdfac8dd8b22ae4a267 [diff] |
staging: gasket: sysfs: clean up state if ENOMEM removing mapping If kcalloc() returns NULL in put_mapping(), continue to clean up state, including dropping the reference on the struct device and free attribute memory. Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>