]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ehca: use correct destination for memcpy
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 11 May 2015 14:38:02 +0000 (16:38 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 11 May 2015 21:14:37 +0000 (17:14 -0400)
commitc2fa62d925ef528db1ac5d5a3e69bb8e40d53032
tree9e0d5929005dc891a91d762f85a9ab81a830e128
parente85911c25ac9648b4b47025c07f391353e361e2b
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ehca/ehca_mcast.c