[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200710271138.06456.arnd@arndb.de>
Date: Sat, 27 Oct 2007 11:38:05 +0200
From: Arnd Bergmann <arnd@...db.de>
To: akpm@...ux-foundation.org, linuxppc-dev@...abs.org,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Johannes Berg <johannes@...solutions.net>,
Jens Axboe <jens.axboe@...cle.com>
Cc: linux-kernel@...r.kernel.org, Philip Langdale <philipl@...rt.org>
Subject: [PATCH] compat_ioctl: fix block device compat ioctl regression
From: Philip Langdale <philipl@...rt.org>
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@...db.de>
---
Mea Culpa. This should have been found by my testing, as it's clear
that most of my big patch never worked at all. Sorry for causing
problems for everyone involved here.
I'm attributing the patch to Philip, as he's the one who pointed
out to me what the fix is.
Arnd <><
--- a/block/compat_ioctl.c
+++ b/block/compat_ioctl.c
@@ -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:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists