From patchwork Tue Dec 21 04:00:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 423521 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBL40ZOB023809 for ; Tue, 21 Dec 2010 04:00:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933541Ab0LUEAd (ORCPT ); Mon, 20 Dec 2010 23:00:33 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:59388 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933506Ab0LUEAc (ORCPT ); Mon, 20 Dec 2010 23:00:32 -0500 Received: by wwa36 with SMTP id 36so3722414wwa.1 for ; Mon, 20 Dec 2010 20:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=MbQKGeNdZmfxXgebFMt5sfMzk2TFjO68lTHegDzApLE=; b=CZH4GuM0fKHrv6vg3+lCb29eCVSMRcOCTOidnpfmPs1TtbNDJLT98UNQUhw/i7jlyJ 2zAWj1LHUPxX7/FNgS33iF8FreBQVR/Cq1lF7861psS1USreb84nZe8Wx26aMP6+RAlp de9rW0gNPgIBZpvC1tbWTYcJ1ImFSBKmkkvMQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=T14Ryq+RhaStIyvye+7m5vBTwNC477aKBM0b+WTmtrjpJs1VfZTi9xZH4SwGweROHe wXtEWVo0vFBOhk4rVz79NvzxVwfrYGVEuVCaf7uTrGZMIcek1C+csmFgYyoAsaKp78lx w0Kxa/kMeoxZW/q7bh4tMGirk6KuD1aOX6YCg= Received: by 10.216.186.138 with SMTP id w10mr5710959wem.1.1292904030735; Mon, 20 Dec 2010 20:00:30 -0800 (PST) Received: from bicker ([41.202.225.147]) by mx.google.com with ESMTPS id o33sm2244866wej.37.2010.12.20.20.00.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 20 Dec 2010 20:00:30 -0800 (PST) Date: Tue, 21 Dec 2010 07:00:13 +0300 From: Dan Carpenter To: "John W. Linville" Cc: Luciano Coelho , Shahar Levi , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch -next] wl12xx: use after free in debug code Message-ID: <20101221040012.GD1936@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Dec 2010 04:00:38 +0000 (UTC) diff --git a/drivers/net/wireless/wl12xx/spi.c b/drivers/net/wireless/wl12xx/spi.c index 4671491..8f7ea2c 100644 --- a/drivers/net/wireless/wl12xx/spi.c +++ b/drivers/net/wireless/wl12xx/spi.c @@ -110,9 +110,9 @@ static void wl1271_spi_reset(struct wl1271 *wl) spi_message_add_tail(&t, &m); spi_sync(wl_to_spi(wl), &m); - kfree(cmd); wl1271_dump(DEBUG_SPI, "spi reset -> ", cmd, WSPI_INIT_CMD_LEN); + kfree(cmd); } static void wl1271_spi_init(struct wl1271 *wl)