Searched refs:data_ptrs (Results 1 – 1 of 1) sorted by relevance
246 u8 __user **data_ptrs; in i2cdev_ioctl_rdwr() local253 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr()254 if (!data_ptrs) in i2cdev_ioctl_rdwr()265 data_ptrs[i] = (u8 __user *)msgs[i].buf; in i2cdev_ioctl_rdwr()266 msgs[i].buf = memdup_user(data_ptrs[i], msgs[i].len); in i2cdev_ioctl_rdwr()302 kfree(data_ptrs); in i2cdev_ioctl_rdwr()309 if (copy_to_user(data_ptrs[i], msgs[i].buf, in i2cdev_ioctl_rdwr()315 kfree(data_ptrs); in i2cdev_ioctl_rdwr()