git: DragonFly_RELEASE_2_10 aesni(4): Avoid panicking when kmall

看板DFBSD_commit作者時間14年前 (2011/05/17 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit f3dbdf8c52f2929ec5937d9329188b097e02d28d 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. Instead, align it ourselves and keep the original address for kfree(). This is a bit hacky but not too hacky (and it is done the same way in padlock(4)). In the middle run, we probably need some kmalloc() flavor that can do alignment. In-discussion-with: alexh Summary of changes: sys/crypto/aesni/aesni.c | 19 ++++++++++++++----- sys/crypto/aesni/aesni.h | 3 +++ 2 files changed, 17 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f3dbdf8c52f2929ec5937d9329188b097e02d28d -- DragonFly BSD source repository
文章代碼(AID): #1DqRGcB5 (DFBSD_commit)