Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1713788f authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide: make ide_special_rq() BUG() on unknown requests



If unknown request reaches this function something is _seriously_ wrong.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 2230d90d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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();
	}
}