* [dhowells-fs:rxrpc-fixes 3/3] net/rxrpc/conn_event.c:254:10: warning: variable 'ret' is uninitialized when used here
@ 2026-05-12 0:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-12 0:59 UTC (permalink / raw)
To: David Howells; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-fixes
head: e9d335dc719f98e1964c57fd1f5f92b6fd1c0c52
commit: e9d335dc719f98e1964c57fd1f5f92b6fd1c0c52 [3/3] rxrpc: Fix RESPONSE packet verification to extract skb to a linear buffer
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260512/202605120837.hzpSAALd-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260512/202605120837.hzpSAALd-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605120837.hzpSAALd-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> net/rxrpc/conn_event.c:254:10: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
254 | return ret;
| ^~~
net/rxrpc/conn_event.c:250:9: note: initialize the variable 'ret' to silence this warning
250 | int ret;
| ^
| = 0
1 warning generated.
vim +/ret +254 net/rxrpc/conn_event.c
242
243 static int rxrpc_verify_response(struct rxrpc_connection *conn,
244 struct sk_buff *skb)
245 {
246 struct xdr_buffer response = {
247 .len = skb->len - sizeof(struct rxrpc_wire_header),
248 };
249 void *buffer;
250 int ret;
251
252 buffer = kmalloc(response.len, GFP_NOFS);
253 if (!buffer)
> 254 return ret;
255
256 ret = skb_copy_bits(skb, sizeof(struct rxrpc_wire_header), buffer, response.len);
257 if (ret < 0)
258 goto out;
259
260 response.p = buffer;
261 ret = conn->security->verify_response(conn, skb, &response);
262
263 out:
264 kfree(buffer);
265 return ret;
266 }
267
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-12 1:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 0:59 [dhowells-fs:rxrpc-fixes 3/3] net/rxrpc/conn_event.c:254:10: warning: variable 'ret' is uninitialized when used here kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox