Hi Vladimir,

FYI, there are new smatch warnings show up in

tree:   
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git master
head:   3e3831c4fdc53aabf3a56419ef6d96a841c52435
commit: 3a85543e9f9f6821d27d33d436f2bad96e5166df [171/199] wil6210: [DEBUG] 
allow to query Rx and all Tx VRING descriptors

drivers/net/wireless/ath/wil6210/debugfs.c:402 wil_txdesc_debugfs_show() warn: 
buffer overflow 'wil->vring_tx' 24 <= 24
drivers/net/wireless/ath/wil6210/debugfs.c:402 wil_txdesc_debugfs_show() warn: 
buffer overflow 'wil->vring_tx' 24 <= 24

git remote add wireless-next 
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git
git remote update wireless-next
git checkout 3a85543e9f9f6821d27d33d436f2bad96e5166df
vim +402 drivers/net/wireless/ath/wil6210/debugfs.c

2be7d22f Vladimir Kondratiev 2012-12-20  386    wil_reset(wil);
2be7d22f Vladimir Kondratiev 2012-12-20  387  
2be7d22f Vladimir Kondratiev 2012-12-20  388    return len;
2be7d22f Vladimir Kondratiev 2012-12-20  389  }
2be7d22f Vladimir Kondratiev 2012-12-20  390  
2be7d22f Vladimir Kondratiev 2012-12-20  391  static const struct 
file_operations fops_reset = {
2be7d22f Vladimir Kondratiev 2012-12-20  392    .write = wil_write_file_reset,
93ecbd64 Wei Yongjun         2013-02-26  393    .open  = simple_open,
2be7d22f Vladimir Kondratiev 2012-12-20  394  };
2be7d22f Vladimir Kondratiev 2012-12-20  395  
3a85543e Vladimir Kondratiev 2014-02-27  396  /*---------Tx/Rx 
descriptor------------*/
2be7d22f Vladimir Kondratiev 2012-12-20  397  static int 
wil_txdesc_debugfs_show(struct seq_file *s, void *data)
2be7d22f Vladimir Kondratiev 2012-12-20  398  {
2be7d22f Vladimir Kondratiev 2012-12-20  399    struct wil6210_priv *wil = 
s->private;
3a85543e Vladimir Kondratiev 2014-02-27  400    struct vring *vring;
3a85543e Vladimir Kondratiev 2014-02-27  401    if (dbg_vring_index <= 
WIL6210_MAX_TX_RINGS)
3a85543e Vladimir Kondratiev 2014-02-27 @402            vring = 
&(wil->vring_tx[dbg_vring_index]);
3a85543e Vladimir Kondratiev 2014-02-27  403    else
3a85543e Vladimir Kondratiev 2014-02-27  404            vring = &wil->vring_rx;
2be7d22f Vladimir Kondratiev 2012-12-20  405  
2be7d22f Vladimir Kondratiev 2012-12-20  406    if (!vring->va) {
3a85543e Vladimir Kondratiev 2014-02-27  407            if (dbg_vring_index <= 
WIL6210_MAX_TX_RINGS)
3a85543e Vladimir Kondratiev 2014-02-27  408                    seq_printf(s, 
"No Tx[%2d] VRING\n", dbg_vring_index);
3a85543e Vladimir Kondratiev 2014-02-27  409            else
3a85543e Vladimir Kondratiev 2014-02-27  410                    seq_puts(s, "No 
Rx VRING\n");

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to