commit | 9b41b92bbae6a4d3e1f3adde87864fd481037814 | [log] [tgz] |
---|---|---|
author | Allen Hung <allen_hung@dell.com> | Fri Jul 15 17:42:22 2016 +0800 |
committer | Jean Delvare <jdelvare@suse.de> | Thu Sep 08 10:35:50 2016 +0200 |
tree | 4d433b5ae15b28eea2fa6dd81fe9fe360c7391f2 | |
parent | d71f058617564750261b673ea9b3352382b9cde4 [diff] |
dmi-id: don't free dev structure after calling device_register dmi_dev is freed in error exit code but, according to the document of device_register, it should never directly free device structure after calling this function, even if it returned an error! Use put_device() instead. Signed-off-by: Allen Hung <allen_hung@dell.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>