Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc4 /block/compat_ioctl.c

Filename:/block/compat_ioctl.c
Lines Added:1
Lines Deleted:2
Also changed in: (Previous) 2.6.26-rc3  2.6.26-rc2-git5  2.6.26-rc2-git4  2.6.26-rc2-git3  2.6.26-rc2  2.6.26-rc1 
(Following) 2.6.26-rc5  2.6.26-rc6  2.6.26-rc7  2.6.26-rc8  2.6.26-rc9  2.6.26 

Location
[  2.6.26-rc4
  [  block
     o  compat_ioctl.c

Patch

diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c
index b733732..c23177e 100644
--- a/block/compat_ioctl.c
+++ b/block/compat_ioctl.c
@@ -555,7 +555,7 @@ static int compat_blk_trace_setup(struct block_device *bdev, char __user *arg)
    if (copy_from_user(&cbuts, arg, sizeof(cbuts)))
       return -EFAULT;
 
-   strcpy(b, bdevname(bdev, b));
+   bdevname(bdev, b);
 
    buts = (struct blk_user_trace_setup) {
       .act_mask = cbuts.act_mask,
@@ -624,7 +624,6 @@ static int compat_blkdev_driver_ioctl(struct inode *inode, struct file *file,
    case HDIO_GET_IDENTITY:
    case HDIO_DRIVE_TASK:
    case HDIO_DRIVE_CMD:
-   case HDIO_SCAN_HWIF:
    /* 0x330 is reserved -- it used to be HDIO_GETGEO_BIG */
    case 0x330:
    /* 0x02 -- Floppy ioctls */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.