diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2018-04-26 21:12:09 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 16:48:59 +0200 |
commit | 085aa2de568493d7cde52126512d37260077811a (patch) | |
tree | 22235cd9fcfa90729a66da2c7538cec0f0d56ba7 /drivers/fpga/fpga-region.c | |
parent | 13509860efcada3e57c16d5f2e60dda8cef6054c (diff) |
mm: memory_hotplug: use put_device() if device_register fail
if device_register() returned an error. Always use put_device()
to give up the initialized reference and release allocated memory.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions