From: SF Markus Elfring <hidden> Date: 2016-08-20 06:01:51
From: Markus Elfring <redacted>
Date: Sat, 20 Aug 2016 07:50:09 +0200
* 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 <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
From: walter harms <hidden> Date: 2016-08-20 09:33:01
Am 20.08.2016 08:01, schrieb SF Markus Elfring:
quoted hunk
From: Markus Elfring <redacted>
Date: Sat, 20 Aug 2016 07:50:09 +0200
* 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 <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
maybe i am missing something here but why do you need ptr ?
The use of count looks even more confusing it is stored in
dbg->inlen, *pos and is returned.
is that realy needed ?
re,
wh
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: David Miller <davem@davemloft.net> Date: 2016-08-23 00:05:54
From: SF Markus Elfring <redacted>
Date: Sat, 20 Aug 2016 08:01:22 +0200
From: Markus Elfring <redacted>
Date: Sat, 20 Aug 2016 07:50:09 +0200
* 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 <redacted>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html