Skip to content

Commit

Permalink
compat_ioctl: fix block device compat ioctl regression
Browse files Browse the repository at this point in the history
The conversion of handlers to compat_blkdev_ioctl accidentally
disabled handling of most ioctl numbers on block devices because
of a typo. Fix the one line to enable it all again.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
  • Loading branch information
Philip Langdale authored and Jens Axboe committed Oct 29, 2007
1 parent 6eca900 commit 33013a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/compat_ioctl.c
Original file line number Diff line number Diff line change
@@ -581,7 +581,7 @@ static int compat_blkdev_driver_ioctl(struct inode *inode, struct file *file,
{
int ret;

switch (arg) {
switch (cmd) {
case HDIO_GET_UNMASKINTR:
case HDIO_GET_MULTCOUNT:
case HDIO_GET_KEEPSETTINGS:

0 comments on commit 33013a8

Please sign in to comment.