aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/conmakehash.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2011-04-12 19:05:37 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-22 17:06:29 -0700
commit8497d6a21c4b17052e868bd53a74c82b557a6c46 (patch)
treef20b4098f8811a0dc7790a26150c969e5ae2ae80 /scripts/conmakehash.c
parentfc2711992b8601c20b7cc078f533e55c3106fbd4 (diff)
downloadkernel_samsung_smdk4412-8497d6a21c4b17052e868bd53a74c82b557a6c46.zip
kernel_samsung_smdk4412-8497d6a21c4b17052e868bd53a74c82b557a6c46.tar.gz
kernel_samsung_smdk4412-8497d6a21c4b17052e868bd53a74c82b557a6c46.tar.bz2
driver-core: fix race between device_register and driver_register
When a device is registered to a bus it will be a) added to the list of devices of the bus and b) bind to a driver (if one matches). As a result of a driver being registered at this bus between a) and b) this device could already be bound to a driver. This leads to a warning and incorrect refcounting. To fix this add a check to device_attach to identify an already bound device. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/conmakehash.c')
0 files changed, 0 insertions, 0 deletions