From: Vasanthakumar Thiagarajan Date: Wed, 27 May 2009 14:21:22 +0530 Subject: [ath9k-devel] [PATCH 2/4] ath9k: Combine legacy and 11n rc statistics In-Reply-To: <1243400715-13561-2-git-send-email-x@jeffhansen.com> References: <1243400715-13561-1-git-send-email-x@jeffhansen.com> <1243400715-13561-2-git-send-email-x@jeffhansen.com> Message-ID: <20090527085122.GI4584@vasanth-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, May 27, 2009 at 10:35:13AM +0530, Jeff Hansen wrote: > + max = 80 + sc->cur_rate_table->rate_cnt * 64; > + buf = vmalloc(max + 1); I think kmalloc is a better option here, the memory you are allocating is not even a page (at max 2952B). Vasanth