diff options
author | Allen Hung <allen_hung@dell.com> | 2016-07-15 09:42:22 (GMT) |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2016-09-08 08:35:50 (GMT) |
commit | 9b41b92bbae6a4d3e1f3adde87864fd481037814 (patch) | |
tree | 4d433b5ae15b28eea2fa6dd81fe9fe360c7391f2 /drivers/md | |
parent | d71f058617564750261b673ea9b3352382b9cde4 (diff) | |
download | linux-9b41b92bbae6a4d3e1f3adde87864fd481037814.tar.xz |
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>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions