Jens Axboe e8e7b9eb11 ide-cd: fix oops when using growisofs
cdrom_read_capacity() will blindly return the capacity from the device
without sanity-checking it.  This later causes code in fs/buffer.c to
oops.

Fix this by checking that the device is telling us sensible things.

From: Jens Axboe <jens.axboe@oracle.com>
Cc: Michael Buesch <mb@bu3sch.de>
Cc: Jan Kara <jack@suse.cz>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: <stable@kernel.org>
Cc: Borislav Petkov <petkovbb@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
[bart: print device name instead of driver name]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
[harvey: blocklen is a big-endian value]
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-07-24 22:53:35 +02:00
..
2008-07-24 22:53:34 +02:00
2008-07-23 19:55:57 +02:00
2008-07-23 19:55:57 +02:00
2008-07-23 19:55:57 +02:00
2008-07-24 22:53:35 +02:00
2008-07-24 22:53:34 +02:00
2008-07-23 19:55:56 +02:00
2008-07-24 22:53:34 +02:00
2008-07-23 19:55:56 +02:00
2008-07-23 19:55:57 +02:00
2008-07-24 22:53:19 +02:00
2008-07-24 22:53:34 +02:00
2008-07-24 22:53:15 +02:00