diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 78ac48df4de8..17216b76efdc 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -2529,7 +2529,7 @@ sg_idr_max_id(int id, void *p, void *data) | |||
2529 | static int | 2529 | static int |
2530 | sg_last_dev(void) | 2530 | sg_last_dev(void) |
2531 | { | 2531 | { |
2532 | int k = 0; | 2532 | int k = -1; |
2533 | unsigned long iflags; | 2533 | unsigned long iflags; |
2534 | 2534 | ||
2535 | read_lock_irqsave(&sg_index_lock, iflags); | 2535 | read_lock_irqsave(&sg_index_lock, iflags); |