Re: [KJ] [PATCH] Replaced tty->driver_data lines with pci_get_drvdata(tty);

From: Matthew Wilcox
Date: Thu Oct 19 2006 - 15:20:24 EST


On Thu, Oct 19, 2006 at 12:02:59PM -0700, David KOENIG wrote:
> +++ b/fs/compat_ioctl.c
> @@ -1270,7 +1270,7 @@ static int do_kdfontop_ioctl(unsigned in
> return -EPERM;
> op.data = compat_ptr(((struct console_font_op32 *)&op)->data);
> op.flags |= KD_FONT_FLAG_OLD;
> - - vc = ((struct tty_struct *)file->private_data)->driver_data;
> + vc = pci_get_drvdata((struct tty_struct *)file->private_data);

Did you even compile this? pci_get_drvdata doesn't take a struct
tty_struct *, it takes a struct pci_dev *.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/