aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/n_hdlc.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-06-12 22:51:14 +0900
committerJeff Garzik <jeff@garzik.org>2006-06-12 10:23:21 -0400
commitd01712698c7c52bc71f41192e864dccc90a1217d (patch)
treef7736e757162618bb7f1dbebe3f60a78f861a49a /drivers/char/n_hdlc.c
parentd4c85325a817d3351e61c4be64b437116e8483b4 (diff)
[PATCH] libata: fix oops caused rescanning NULL sdev
Depending on timing, ata_scsi_dev_rescan() might encounter a device which is enabled but not yet attached to sdev. On such cases, the original code caused oops. This patch makes ata_scsi_dev_rescan() rescan only device which are attached to sdevs. While at it, properly indent leading comment and add description about how it's synchronized with sdev attach/detach. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/char/n_hdlc.c')
0 files changed, 0 insertions, 0 deletions