summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 12:46:42 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 12:46:42 +0100
commit1713788ff8e191de5da707ed8144698b32771f99 (patch)
treeb37a864e18ca9790a551fc2bc0d8bc58af788dfe /drivers
parent2230d90dd889e35da2728b6f6ebf25fb5a6499bd (diff)
downloadop-kernel-dev-1713788ff8e191de5da707ed8144698b32771f99.zip
op-kernel-dev-1713788ff8e191de5da707ed8144698b32771f99.tar.gz
ide: make ide_special_rq() BUG() on unknown requests
If unknown request reaches this function something is _seriously_ wrong. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/ide-io.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c
index c33a800..0873887 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();
}
}
OpenPOWER on IntegriCloud