CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Pavel Begunkov <[email protected]>
CC: Jens Axboe <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   d7a03a44a5e93f39ece70ec75d25c6088caa0fdb
commit: efc2519f427b09ecdfc5ee722025da5e01a9b58d [13725/14034] io_uring: fix 
double io_uring free
:::::: branch date: 6 days ago
:::::: commit date: 7 days ago
compiler: nds32le-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

         ^
   fs/io_uring.c:8429:7: note: Variable 'ret' is reassigned a value before the 
old one has been used.
     ret = 0;
         ^
>> fs/io_uring.c:9408:6: warning: Unused variable: ret [unusedVariable]
    int ret;
        ^

vim +9408 fs/io_uring.c

efc2519f427b09e Pavel Begunkov 2020-12-21  9398  
2b188cc1bb857a9 Jens Axboe     2019-01-07  9399  /*
2b188cc1bb857a9 Jens Axboe     2019-01-07  9400   * Allocate an anonymous fd, 
this is what constitutes the application
2b188cc1bb857a9 Jens Axboe     2019-01-07  9401   * visible backing of an 
io_uring instance. The application mmaps this
2b188cc1bb857a9 Jens Axboe     2019-01-07  9402   * fd to gain access to the 
SQ/CQ ring details. If UNIX sockets are enabled,
2b188cc1bb857a9 Jens Axboe     2019-01-07  9403   * we have to tie this fd to a 
socket for file garbage collection purposes.
2b188cc1bb857a9 Jens Axboe     2019-01-07  9404   */
efc2519f427b09e Pavel Begunkov 2020-12-21  9405  static struct file 
*io_uring_get_file(struct io_ring_ctx *ctx)
2b188cc1bb857a9 Jens Axboe     2019-01-07  9406  {
2b188cc1bb857a9 Jens Axboe     2019-01-07  9407         struct file *file;
2b188cc1bb857a9 Jens Axboe     2019-01-07 @9408         int ret;
2b188cc1bb857a9 Jens Axboe     2019-01-07  9409  

:::::: The code at line 9408 was first introduced by commit
:::::: 2b188cc1bb857a9d4701ae59aa7768b5124e262e Add io_uring IO interface

:::::: TO: Jens Axboe <[email protected]>
:::::: CC: Jens Axboe <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to