From: Bartlomiej Zolnierkiewicz Date: Fri, 27 Mar 2009 11:46:42 +0000 (+0100) Subject: ide: make ide_special_rq() BUG() on unknown requests X-Git-Tag: firefly_0821_release~15198^2~14 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1713788ff8e191de5da707ed8144698b32771f99;p=firefly-linux-kernel-4.4.55.git ide: make ide_special_rq() BUG() on unknown requests If unknown request reaches this function something is _seriously_ wrong. Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index c33a8006838b..0873887194f7 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -357,9 +357,7 @@ static ide_startstop_t ide_special_rq(ide_drive_t *drive, struct request *rq) case REQ_DRIVE_RESET: return ide_do_reset(drive); default: - blk_dump_rq_flags(rq, "ide_special_rq - bad request"); - ide_end_request(drive, 0, 0); - return ide_stopped; + BUG(); } }