mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-15 22:41:38 +00:00
commitdda037057aupstream. Set correct value in '->vif_num' for the total number of interfaces and set '->idx' value using 'i'. Fixes:735bb39ca3("staging: wilc1000: simplify vif[i]->ndev accesses") Fixes:0e490657c7("staging: wilc1000: Fix problem with wrong vif index") Cc: <stable@vger.kernel.org> Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>