https://github.com/torvalds/linux
Revision 9b41b92bbae6a4d3e1f3adde87864fd481037814 authored by Allen Hung on 15 July 2016, 09:42:22 UTC, committed by Jean Delvare on 08 September 2016, 08:35:50 UTC
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>
1 parent d71f058
History
Tip revision: 9b41b92bbae6a4d3e1f3adde87864fd481037814 authored by Allen Hung on 15 July 2016, 09:42:22 UTC
dmi-id: don't free dev structure after calling device_register
Tip revision: 9b41b92
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 7.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.5 KB
Kbuild -rw-r--r-- 2.8 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 363.4 KB
Makefile -rw-r--r-- 56.8 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top