• Dmitry Torokhov's avatar
    Input: reset name, phys and uniq when unregistering · f60d2b11
    Dmitry Torokhov authored
    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: default avatarDmitry Torokhov <dtor@mail.ru>
    f60d2b11
input.c 27.4 KB