platform/x86: ISST: Reset default callback on unregister
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 12 Jun 2023 22:40:32 +0000 (15:40 -0700)
committerHans de Goede <hdegoede@redhat.com>
Tue, 13 Jun 2023 10:34:50 +0000 (12:34 +0200)
commitfa5e68b1c10d56befcee2ee0a9e1eed2c830e352
tree4dc907d5f2e8034267816d0f1a94149ac3015f2a
parentaeaee158c2dbcba3763044424783e98846a1922c
platform/x86: ISST: Reset default callback on unregister

When multiple clients are registered and some of those modules are
removed, the default IOCTL callback for those clients are still not
NULL. Calling them will result in crash.

Set the default IOCTL callback pointer to NULL on unregister.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20230612224033.2382527-2-srinivas.pandruvada@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/speed_select_if/isst_if_common.c