Skip to content
Commit 94634e98 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Doug Ledford
Browse files

IB/ehca: use correct destination for memcpy



Using an element of a struct as the address for the memcpy of the whole
struct may introduce a buffer overflow and does not help readability either
simply pass the real thing as first argument to memcpy.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent b6b2bbe6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment