Whamcloud - gitweb
LU-3132 lfsck: fix the wrong data pointer 81/6181/2
authorEmoly Liu <emoly.liu@intel.com>
Fri, 3 May 2013 07:52:51 +0000 (15:52 +0800)
committerEmoly Liu <emoly.liu@intel.com>
Fri, 3 May 2013 07:52:51 +0000 (15:52 +0800)
The patch is to pass a correct data pointer of struct lu_fid or
struct ll_recreate_obj to ioctl in lfsck_recreate_obj().

Signed-off-by: Liu Ying <emoly.liu@intel.com>
Change-Id: I8301f311cc5aaf57ae51ceaeb74db25fe61b5cd6

e2fsck/lfsck.c

index 6f489e5..b16f84e 100644 (file)
@@ -774,7 +774,7 @@ static int lfsck_recreate_obj(int cmd, void *creat, struct ostid *oi,
                return rc;
        }
 
-       rc = ioctl(fd, cmd, &creat);
+       rc = ioctl(fd, cmd, creat);
        if (rc) {
                rc = -errno;
                log_write("[%u]: failed to recreate %s missing obj "DOSTID"\n",