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

Sepherosa Ziehau sepherosa at gmail.com
Sun Apr 24 20:22:42 PDT 2011


On Sat, Apr 23, 2011 at 5:17 PM, Sascha Wildner
<swildner at crater.dragonflybsd.org> wrote:
>
> commit 21bf6268304cfb3defd147b2fb9e3252696f629e
> Author: Sascha Wildner <saw at 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






More information about the Commits mailing list