Commit 479bec4
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/[email protected]
Signed-off-by: Thorsten Blum <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Tested-by: Brett Creeley <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>1 parent e7085be commit 479bec4
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 370 | + | |
| 371 | + | |
378 | 372 | | |
379 | | - | |
380 | | - | |
| 373 | + | |
381 | 374 | | |
382 | 375 | | |
383 | 376 | | |
| |||
453 | 446 | | |
454 | 447 | | |
455 | 448 | | |
456 | | - | |
457 | 449 | | |
458 | 450 | | |
459 | 451 | | |
| |||
0 commit comments