From: Sergey Klyaus Date: Wed, 8 Oct 2014 07:31:54 +0000 (+0400) Subject: driver core: fix race with userland in device_add() X-Git-Tag: omap-for-v3.19/fixes-rc1~85^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cd75047de7f54d6fb4aba0ec5818f8194815a5a;p=pandora-kernel.git driver core: fix race with userland in device_add() 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed