Merge "lmkd: fix an uninit value bug"
am: 50816f0c21 Change-Id: Ia5d1982c11006897758d203d30e3fc7b62993616
This commit is contained in:
commit
b384307d44
2
lmkd.c
2
lmkd.c
|
|
@ -926,12 +926,12 @@ static void cmd_procprio(LMKD_CTRL_PACKET packet) {
|
||||||
static void cmd_procremove(LMKD_CTRL_PACKET packet) {
|
static void cmd_procremove(LMKD_CTRL_PACKET packet) {
|
||||||
struct lmk_procremove params;
|
struct lmk_procremove params;
|
||||||
|
|
||||||
|
lmkd_pack_get_procremove(packet, ¶ms);
|
||||||
if (use_inkernel_interface) {
|
if (use_inkernel_interface) {
|
||||||
stats_remove_taskname(params.pid, kpoll_info.poll_fd);
|
stats_remove_taskname(params.pid, kpoll_info.poll_fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lmkd_pack_get_procremove(packet, ¶ms);
|
|
||||||
/*
|
/*
|
||||||
* WARNING: After pid_remove() procp is freed and can't be used!
|
* WARNING: After pid_remove() procp is freed and can't be used!
|
||||||
* Therefore placed at the end of the function.
|
* Therefore placed at the end of the function.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue