diff options
| author | Dominique Martinet <[email protected]> | 2022-11-18 22:44:41 +0900 |
|---|---|---|
| committer | Dominique Martinet <[email protected]> | 2022-11-23 14:01:27 +0900 |
| commit | 391c18cf776eb4569ecda1f7794f360fe0a45a26 (patch) | |
| tree | 10a3ffb03e458b1461069ff48257b6f72cfc4836 /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | 6854fadbeee10891ed74246bdc05031906b6c8cf (diff) | |
9p/xen: check logical size for buffer size
trans_xen did not check the data fits into the buffer before copying
from the xen ring, but we probably should.
Add a check that just skips the request and return an error to
userspace if it did not fit
Tested-by: Stefano Stabellini <[email protected]>
Reviewed-by: Christian Schoenebeck <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions