From: Jens Axboe Date: Thu, 24 Jul 2008 20:53:35 +0000 (+0200) Subject: ide-cd: fix oops when using growisofs X-Git-Tag: v2.6.27-rc1~509^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8e7b9eb11c34ee18bde8b7011af41938d1ad667;p=pandora-kernel.git 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 Cc: Michael Buesch Cc: Jan Kara Cc: Arnd Bergmann Cc: Cc: Borislav Petkov Signed-off-by: Andrew Morton [bart: print device name instead of driver name] Signed-off-by: Bartlomiej Zolnierkiewicz [harvey: blocklen is a big-endian value] Signed-off-by: Harvey Harrison Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed