看板 DFBSD_commit 關於我們 聯絡資訊
On Sat, Apr 23, 2011 at 5:17 PM, Sascha Wildner <swildner@crater.dragonflybsd.org> wrote: > > commit 21bf6268304cfb3defd147b2fb9e3252696f629e > Author: Sascha Wildner <saw@online.de> > Date: ꀠSat Apr 23 10:56:05 2011 +0200 > > ꀠ乸esni(4): Avoid panicking when kmalloc() returns an unaligned pointer. Could we round up the kmalloc size to the nearest power of 2 instead of aligning it manually? AFAIK, kmalloc will align data properly if the allocation size is power of 2. Best Regards, sephe -- Tomorrow Will Never Die