Home
last modified time | relevance | path

Searched refs:data_ptrs (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/drivers/i2c/
Di2c-dev.c238 u8 __user **data_ptrs; in i2cdev_ioctl_rdwr() local
241 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr()
242 if (data_ptrs == NULL) { in i2cdev_ioctl_rdwr()
255 data_ptrs[i] = (u8 __user *)msgs[i].buf; in i2cdev_ioctl_rdwr()
256 msgs[i].buf = memdup_user(data_ptrs[i], msgs[i].len); in i2cdev_ioctl_rdwr()
292 kfree(data_ptrs); in i2cdev_ioctl_rdwr()
300 if (copy_to_user(data_ptrs[i], msgs[i].buf, in i2cdev_ioctl_rdwr()
306 kfree(data_ptrs); in i2cdev_ioctl_rdwr()