From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 145A8C282C4 for ; Sat, 9 Feb 2019 08:04:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C4D89218D2 for ; Sat, 9 Feb 2019 08:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549699466; bh=A4PAH2UcQ19UrmvFp1Dge7VRIBViaaBkW2lyfDq7oGg=; h=Subject:To:From:Date:List-ID:From; b=w7pe8VpAeociSgsUGrFI0VGMXHKdBXnAHntcyV5Ok4rCsOd5hD/hlmOuGprKzX1QH daC36l1787wmmQ4eIzxvTJYced1fMur14SMhUaFw0i7Nwnouj92x+C1FwoDHOlZeSY MR6tVLkUIATsUm9gMgodEo1wjMPVM2Tqpa318g/g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726058AbfBIIE0 (ORCPT ); Sat, 9 Feb 2019 03:04:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:38724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfBIIE0 (ORCPT ); Sat, 9 Feb 2019 03:04:26 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 01C3A20869; Sat, 9 Feb 2019 08:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549699465; bh=A4PAH2UcQ19UrmvFp1Dge7VRIBViaaBkW2lyfDq7oGg=; h=Subject:To:From:Date:From; b=uLplwnkqzcN7E8AdHuJYJuCA6i+1I4EkyYqS0D8hPo3N72bIEiJnOsIH6y4hayiHI r05h4wGSBy23F9sStvU5EKwtxQzhCV244i884mQERykBfhRgyPaWlfrcnQa2bibDFS C0v1FWDtw0PQeEF2pZPfnBBRGJQSO/HOiNMYn8CU= Subject: patch "staging: wilc1000: fix to set correct value for 'vif_num'" added to staging-next To: ajay.kathat@microchip.com, dan.carpenter@oracle.com, gregkh@linuxfoundation.org, stable@vger.kernel.org From: Date: Sat, 09 Feb 2019 09:03:42 +0100 Message-ID: <1549699422103226@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This is a note to let you know that I've just added the patch titled staging: wilc1000: fix to set correct value for 'vif_num' to my staging git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git in the staging-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. >From dda037057a572f5c82ac2499eb4e6fb17600ba3e Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Thu, 7 Feb 2019 11:28:58 +0000 Subject: 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: 735bb39ca3be ("staging: wilc1000: simplify vif[i]->ndev accesses") Fixes: 0e490657c721 ("staging: wilc1000: Fix problem with wrong vif index") Cc: Suggested-by: Dan Carpenter Signed-off-by: Ajay Singh Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/linux_wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index f096f9e6b274..f3e52af6cc7e 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1020,8 +1020,8 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type, vif->wilc = *wilc; vif->ndev = ndev; wl->vif[i] = vif; - wl->vif_num = i; - vif->idx = wl->vif_num; + wl->vif_num = i + 1; + vif->idx = i; ndev->netdev_ops = &wilc_netdev_ops; -- 2.20.1