CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Ajay Singh <ajay.kat...@microchip.com>
CC: Kalle Valo <kv...@codeaurora.org>

Hi Ajay,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   db24726bfefa68c606947a86132591568a06bfb4
commit: 5625f965d7644b4dc6a71d74021cfe093ad34eea wilc1000: move wilc driver out 
of staging
date:   9 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 9 months ago
config: h8300-randconfig-m031-20210326 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>
Reported-by: Dan Carpenter <dan.carpen...@oracle.com>

smatch warnings:
drivers/net/wireless/microchip/wilc1000/hif.c:1410 wilc_get_stats_async() warn: 
passing a valid pointer to 'PTR_ERR'
drivers/net/wireless/microchip/wilc1000/hif.c:1925 
wilc_setup_multicast_filter() warn: passing a valid pointer to 'PTR_ERR'

vim +/PTR_ERR +1410 drivers/net/wireless/microchip/wilc1000/hif.c

c5c77ba18ea66a drivers/staging/wilc1000/host_interface.c Johnny Kim      
2015-05-11  1402  
2f6fa4ca37c57e drivers/staging/wilc1000/host_interface.c Marko Stankovic 
2018-12-25  1403  static int wilc_get_stats_async(struct wilc_vif *vif, struct 
rf_info *stats)
c5c77ba18ea66a drivers/staging/wilc1000/host_interface.c Johnny Kim      
2015-05-11  1404  {
d241877a1aca7e drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-07-19  1405       int result;
ff52a57a7a4237 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26  1406       struct host_if_msg *msg;
ff52a57a7a4237 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26  1407  
19cb25e1e6a906 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-12-02  1408       msg = wilc_alloc_work(vif, handle_get_statistics, false);
ff52a57a7a4237 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26  1409       if (IS_ERR(msg))
ff52a57a7a4237 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26 @1410               return PTR_ERR(msg);
c5c77ba18ea66a drivers/staging/wilc1000/host_interface.c Johnny Kim      
2015-05-11  1411  
ff52a57a7a4237 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26  1412       msg->body.data = (char *)stats;
ae4dfa572a7e67 drivers/staging/wilc1000/host_interface.c Leo Kim         
2015-10-13  1413  
c6a358d5647627 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26  1414       result = wilc_enqueue_work(msg);
31390eec7dce63 drivers/staging/wilc1000/host_interface.c Leo Kim         
2015-10-19  1415       if (result) {
a120adb8b6eddc drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-07-29  1416               netdev_err(vif->ndev, "%s: enqueue work 
failed\n", __func__);
ff52a57a7a4237 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26  1417               kfree(msg);
ff52a57a7a4237 drivers/staging/wilc1000/host_interface.c Ajay Singh      
2018-06-26  1418               return result;
c5c77ba18ea66a drivers/staging/wilc1000/host_interface.c Johnny Kim      
2015-05-11  1419       }
c5c77ba18ea66a drivers/staging/wilc1000/host_interface.c Johnny Kim      
2015-05-11  1420  
31390eec7dce63 drivers/staging/wilc1000/host_interface.c Leo Kim         
2015-10-19  1421       return result;
c5c77ba18ea66a drivers/staging/wilc1000/host_interface.c Johnny Kim      
2015-05-11  1422  }
c5c77ba18ea66a drivers/staging/wilc1000/host_interface.c Johnny Kim      
2015-05-11  1423  

:::::: The code at line 1410 was first introduced by commit
:::::: ff52a57a7a4237ad5e089d32c7d621a68f4a7610 staging: wilc1000: move the 
allocation of cmd out of wilc_enqueue_cmd()

:::::: TO: Ajay Singh <ajay.kat...@microchip.com>
:::::: CC: Greg Kroah-Hartman <gre...@linuxfoundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to