Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9b41b92b authored by Allen Hung's avatar Allen Hung Committed by Jean Delvare
Browse files

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: default avatarAllen Hung <allen_hung@dell.com>
Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
parent d71f0586
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment