git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ef67a8
)
driver core: fix race with userland in device_add()
author
Sergey Klyaus
<Sergey.Klyaus@tune-it.ru>
Wed, 8 Oct 2014 07:31:54 +0000
(11:31 +0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 19:14:57 +0000
(11:14 -0800)
bus_add_device() should be called before devtmpfs_create_node(), so when
userland application opens device from devtmpfs, it wouldn't get ENODEV
from kernel, because device_add() wasn't completed.
Signed-off-by: Sergey Klyaus <Sergey.Klyaus@Tune-IT.Ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
patch
|
blob
|
history
diff --cc
drivers/base/core.c
Simple merge