Off by one in floppy.c
authorEric Sesterhenn / Snakebyte <snakebyte@gmx.de>
Wed, 23 May 2007 20:58:15 +0000 (13:58 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:15 +0000 (20:14 -0700)
commit4acb3e2f97f41cf9b53182b494384467d3ceb304
treea315110b3aae508db20303c92daae467efc8ad1d
parentfa74419bb7b51af4bbb66116d14cc92f0b5aff25
Off by one in floppy.c

Another coverity patch i forgot to resend, original thread here
http://marc.info/?l=linux-kernel&m=115144559823592&w=2

In case drive == N_DRIVE, we get one past the drive_params array.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/floppy.c