linux/drivers/fwctl
Thorsten Blum 479bec4cb3 pds_fwctl: Replace kzalloc + copy_from_user with memdup_user in pdsfc_fw_rpc
Replace kzalloc() followed by copy_from_user() with memdup_user() to
improve and simplify pdsfc_fw_rpc().

Return early if an error occurs and remove the obsolete 'err_out' label.

No functional changes intended.

Link: https://patch.msgid.link/r/20250917150941.168887-1-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2025-09-22 10:33:10 -03:00
..
mlx5 fwctl/mlx5: Add Adjacent function query commands and their scope 2025-09-17 10:02:09 -03:00
pds pds_fwctl: Replace kzalloc + copy_from_user with memdup_user in pdsfc_fw_rpc 2025-09-22 10:33:10 -03:00
Kconfig pds_fwctl: initial driver framework 2025-03-21 20:57:55 -03:00
Makefile pds_fwctl: initial driver framework 2025-03-21 20:57:55 -03:00
main.c fwctl: Fix repeated device word in log message 2025-04-11 20:47:45 -03:00