Skip to content

Commit 06a2c93

Browse files
Fix blkdev ioctl bug
1 parent 2c49ebc commit 06a2c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static int raw_release(struct inode *inode, struct file *filp)
393393
static long raw_ioctl(struct file *filp, unsigned int command, unsigned long arg)
394394
{
395395
int retval = 0;
396-
struct pr_vma_data *pvd = (struct pr_vma_data *)filp->private_data;
396+
struct pr_vma_data *pvd = ((struct fastmap_info *)filp->private_data)->pvd;
397397
struct raw_device_data *rdd = pvd->meta.rdd;
398398
struct block_device *bdev = pvd->bk.bdev;
399399
#if 0

0 commit comments

Comments
 (0)