diff options
| author | Dominique Martinet <[email protected]> | 2022-11-22 00:06:56 +0000 |
|---|---|---|
| committer | Dominique Martinet <[email protected]> | 2022-12-02 15:04:37 +0000 |
| commit | f15e006b831384aaec4b4f13265c0dff88ef09dd (patch) | |
| tree | f0aad1fb29528093cdfd2281ca3072a9b35c192c /drivers/pci/controller/pci-versatile.c | |
| parent | 9p: set req refcount to zero to avoid uninitialized usage (diff) | |
| download | kernel-f15e006b831384aaec4b4f13265c0dff88ef09dd.tar.gz kernel-f15e006b831384aaec4b4f13265c0dff88ef09dd.zip | |
9p/xen: do not memcpy header into req->rc
while 'h' is packed and can be assumed to match the request payload,
req->rc is a struct p9_fcall which is not packed and that memcpy
could be wrong.
Fix this by copying each fields individually instead.
Reported-by: Christian Schoenebeck <[email protected]>
Reviewed-by: Christian Schoenebeck <[email protected]>
Suggested-by: Stefano Stabellini <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Link: https://lkml.kernel.org/r/alpine.DEB.2.22.394.2211211454540.1049131@ubuntu-linux-20-04-desktop
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-versatile.c')
0 files changed, 0 insertions, 0 deletions
