diff options
author | Jens Axboe <[email protected]> | 2008-07-24 22:53:35 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <[email protected]> | 2008-07-24 22:53:35 +0200 |
commit | e8e7b9eb11c34ee18bde8b7011af41938d1ad667 (patch) | |
tree | 07e97088cee787f02e9e8de1105829775bc41b5c /net/unix/sysctl_net_unix.c | |
parent | 96cc112c09b3c6674da01ef8b377f7a916883ea2 (diff) |
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 <[email protected]>
Cc: Michael Buesch <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: <[email protected]>
Cc: Borislav Petkov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
[bart: print device name instead of driver name]
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
[harvey: blocklen is a big-endian value]
Signed-off-by: Harvey Harrison <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions