]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: fix to set correct value for 'vif_num'
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 7 Feb 2019 11:28:58 +0000 (11:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Feb 2019 12:34:45 +0000 (13:34 +0100)
commit599e9791a7a4c95f848fd114ba55ed80f84e0bd4
treeacd0fcb11a6e808fb821b1625e22fdff43016ebd
parenta4841a5da2933177f3dd9c64dde04309cb6cd032
staging: wilc1000: fix to set correct value for 'vif_num'

Set correct value in '->vif_num' for the total number of interfaces and
set '->idx' value using 'i'.

Fixes: 39507bce3848 ("staging: wilc1000: simplify vif[i]->ndev accesses")
Fixes: 3318f3bef577 ("staging: wilc1000: Fix problem with wrong vif index")
Cc: <stable@vger.kernel.org>
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c