diff options
| author | Greg Kroah-Hartman <[email protected]> | 2008-05-16 17:55:12 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2008-05-20 13:31:56 -0700 |
| commit | 24b42566c3fcbb5a9011d1446783d0f5844ccd45 (patch) | |
| tree | 0e1de28631d02446580adf5fbb98feb981b20b5a /net/lapb/lapb_out.c | |
| parent | c013d040b70bc2bff5465917ebb255a70b650396 (diff) | |
SCSI: fix race in device_create
There is a race from when a device is created with device_create() and
then the drvdata is set with a call to dev_set_drvdata() in which a
sysfs file could be open, yet the drvdata will be NULL, causing all
sorts of bad things to happen.
This patch fixes the problem by using the new function,
device_create_drvdata(). It fixes the problem in all of the scsi
drivers that need it.
Cc: Kay Sievers <[email protected]>
Cc: Doug Gilbert <[email protected]>
Cc: James E.J. Bottomley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions