diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-15 16:16:10 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-15 16:16:10 -0400 |
commit | 2c7eaa43c3bb7b3b9fe2051d17f308c1f0728c78 (patch) | |
tree | 1b359598ea212bf7036bcc018186e0a8f20ac5f4 /drivers/ide/ide-floppy.c | |
parent | a9c415090710a108edcd81b3392b90396f190a9a (diff) |
ide: BUG() on unknown requests
Unsupported requests should be never handed down to device drivers
and the best thing we can do upon discovering such request inside
driver's ->do_request method is to just BUG().
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 800c83a9db83..8b3f204f7d73 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -269,10 +269,8 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive, | |||
269 | } else if (blk_pc_request(rq)) { | 269 | } else if (blk_pc_request(rq)) { |
270 | pc = &floppy->queued_pc; | 270 | pc = &floppy->queued_pc; |
271 | idefloppy_blockpc_cmd(floppy, pc, rq); | 271 | idefloppy_blockpc_cmd(floppy, pc, rq); |
272 | } else { | 272 | } else |
273 | blk_dump_rq_flags(rq, PFX "unsupported command in queue"); | 273 | BUG(); |
274 | goto out_end; | ||
275 | } | ||
276 | 274 | ||
277 | ide_prep_sense(drive, rq); | 275 | ide_prep_sense(drive, rq); |
278 | 276 | ||