diff options
| author | Dominique Martinet <[email protected]> | 2023-05-03 07:49:27 +0000 |
|---|---|---|
| committer | Eric Van Hensbergen <[email protected]> | 2023-07-20 19:14:50 +0000 |
| commit | 4a73edab69d3a6623f03817fe950a2d9585f80e4 (patch) | |
| tree | f9acf213b6ccc99475be93ce0b6bcd902dcbad65 /tools/testing/radix-tree/multiorder.c | |
| parent | 9p: virtio: fix unlikely null pointer deref in handle_rerror (diff) | |
| download | kernel-4a73edab69d3a6623f03817fe950a2d9585f80e4.tar.gz kernel-4a73edab69d3a6623f03817fe950a2d9585f80e4.zip | |
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 <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Signed-off-by: Eric Van Hensbergen <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/multiorder.c')
0 files changed, 0 insertions, 0 deletions
