diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2023-05-03 10:49:27 +0300 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2023-07-20 22:14:50 +0300 |
commit | 4a73edab69d3a6623f03817fe950a2d9585f80e4 (patch) | |
tree | f9acf213b6ccc99475be93ce0b6bcd902dcbad65 /usr/Kconfig | |
parent | 13ade4ac5c28e8a014fa85278f5a4270b215f906 (diff) | |
download | linux-4a73edab69d3a6623f03817fe950a2d9585f80e4.tar.xz |
9p: virtio: make sure 'offs' is initialized in zc_request
Similarly to the previous patch: offs can be used in handle_rerrors
without initializing on small payloads; in this case handle_rerrors will
not use it because of the size check, but it doesn't hurt to make sure
it is zero to please scan-build.
This fixes the following warning:
net/9p/trans_virtio.c:539:3: warning: 3rd function call argument is an uninitialized value [core.CallAndMessage]
handle_rerror(req, in_hdr_len, offs, in_pages);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'usr/Kconfig')
0 files changed, 0 insertions, 0 deletions