DragonFly BSD
DragonFly commits List (threaded) for 2011-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: git: aesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.


From: Sepherosa Ziehau <sepherosa@xxxxxxxxx>
Date: Mon, 25 Apr 2011 11:21:25 +0800

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
>
>    aesni(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




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]