]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5/core: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 20 Aug 2016 05:50:09 +0000 (07:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2016 00:05:38 +0000 (17:05 -0700)
commitc440b72f7a34cb7119dac7730bca0045b039df92
treeaf27337c277eac3b89b403b4d9548946fef37a24
parent224fdce157870eac804a3574044fa3690f7fa578
mlx5/core: Use memdup_user() rather than duplicating its implementation

* Reuse existing functionality from memdup_user() instead of keeping
  duplicate source code.

  This issue was detected by using the Coccinelle software.

* Return directly if this copy operation failed.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c