admin: fix devices not reset
authorYun-Hao Chung <howardchung@chromium.org>
Fri, 12 Nov 2021 04:01:49 +0000 (12:01 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
commitb52c6ff48aee25d0ea06fd87df04d2ebda782351
treeb7fa2d9a9b5dcd5441f2798c52723ec860039fc0
parent63137fd54075adae2f65309ee0aea0087c0d972d
admin: fix devices not reset

When |admin_policy_remove| is called, we set |devices| to NULL but never
set it back until |admin_init|. This makes admin lost track of current
registered device interface, so the next |admin_policy_removed| will not
be able to unregister those interfaces.

Reviewed-by: Archie Pusaka <apusaka@chromium.org>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
plugins/admin.c