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>
This commit is contained in:
@@ -269,10 +269,8 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive,
|
||||
} else if (blk_pc_request(rq)) {
|
||||
pc = &floppy->queued_pc;
|
||||
idefloppy_blockpc_cmd(floppy, pc, rq);
|
||||
} else {
|
||||
blk_dump_rq_flags(rq, PFX "unsupported command in queue");
|
||||
goto out_end;
|
||||
}
|
||||
} else
|
||||
BUG();
|
||||
|
||||
ide_prep_sense(drive, rq);
|
||||
|
||||
|
Reference in New Issue
Block a user