• D
    Input: reset name, phys and uniq when unregistering · f60d2b11
    Dmitry Torokhov 提交于
    Name, phys and uniq are quite often constant strings in moules implementing
    particular input device. If a module unregisters input device and then gets
    unloaded, the device could still be present in memory (pinned via sysfs),
    but aforementioned members would point to some random memory. Set them all
    to NULL when unregistering so sysfs handlers won't try dereferencing them.
    Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
    f60d2b11
input.h 25.4 KB