linux/drivers/gpib/lpvo_usb_gpib
Mohammad Shahid 9d4ce1c7cd gpib: lpvo_usb_gpib: use memdup_user() instead of kmalloc() and copy_from_user()
Use memdup_user() to replace the open-coded kmalloc() and
copy_from_user() sequence.

This simplifies the code while preserving the existing behavior.

This issue was reported by memdup_user.cocci.

Signed-off-by: Mohammad Shahid <mdshahid03@gmail.com>
Link: https://patch.msgid.link/20260705051701.142070-1-mdshahid03@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 14:54:05 +02:00
..
lpvo_usb_gpib.c gpib: lpvo_usb_gpib: use memdup_user() instead of kmalloc() and copy_from_user() 2026-07-17 14:54:05 +02:00
Makefile