commit | 71b66e91e7952c5132f639786c94848d66eda7e9 | [log] [tgz] |
---|---|---|
author | Doug Ledford <dledford@redhat.com> | Sun Oct 14 17:03:01 2012 +0000 |
committer | Roland Dreier <roland@purestorage.com> | Mon May 06 11:51:55 2013 -0700 |
tree | 3efd696cf49848b349cc53fe4161d08f622a1233 | |
parent | bcfb57e25a176be951f862490a5ee3019d3153b8 [diff] |
Fix the compatibility wrapper on PPC The PPC architecture packs the work request struct 1.0 in such a way that a straight memcpy won't work. Instead, break the copy out into chunks whenever the sizes don't match for given portions of the struct. Found by built in gcc memcpy buffer overflow checks. Help on the right fix provided by Jakub Jelinek from the gcc team inside Red Hat. Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Roland Dreier <roland@purestorage.com>