ANDROID: kernel: fix debug_kinfo set twice crash issue

If write string to /sys/module/debug_kinfo/parameters/build_info
twice, kernel will crash. fix by removing vunmap in build_info_set.

Bug: 213120696
Signed-off-by: Chunhui Li <chunhui.li@mediatek.com>
Change-Id: I683859067a31068de0006be8490efa4b0107044f
(cherry picked from commit bdc772adbd2de9384a869e06d2a72f31a5a6d1cb)
This commit is contained in:
chunhui.li 2022-01-04 15:16:58 +08:00 committed by Chunhui Li
parent 12a5d3ae52
commit a04009eea6
1 changed files with 0 additions and 1 deletions

View File

@ -81,7 +81,6 @@ static int build_info_set(const char *str, const struct kernel_param *kp)
}
Exit:
vunmap(all_info_addr);
return ret;
}