Return-path: Received: from mail-qw0-f46.google.com ([209.85.216.46]:43468 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753902Ab0GMLXx (ORCPT ); Tue, 13 Jul 2010 07:23:53 -0400 From: Kulikov Vasiliy To: kernel-janitors@vger.kernel.org Cc: "John W. Linville" , "David S. Miller" , Matthieu CASTET , Stanislaw Gruszka , Roel Kluin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] wireless: airo: delete netdev from list after it is freed Date: Tue, 13 Jul 2010 15:23:33 +0400 Message-Id: <1279020214-9525-1-git-send-email-segooon@gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: We must call del_airo_dev() before free_netdev() since we call add_airo_dev() exactly after alloc_netdev(). Signed-off-by: Kulikov Vasiliy --- drivers/net/wireless/airo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 6b605df..cce2f8f 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c @@ -2931,8 +2931,8 @@ err_out_res: release_region( dev->base_addr, 64 ); err_out_nets: airo_networks_free(ai); - del_airo_dev(ai); err_out_free: + del_airo_dev(ai); free_netdev(dev); return NULL; } -- 1.7.0.4