]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: nvec: remove managed resource from PS2 driver
authorMarc Dietrich <marvin24@gmx.de>
Tue, 1 Nov 2016 12:59:40 +0000 (13:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:46 +0000 (10:51 +0100)
commit6b95417150b747aef3a9aa99c0d8497c3c739b0a
treea6cc815242f86a1dcc98e05282508e9db5e9381d
parent82239ab105a5aa507ac9e3f1b6157d05eb24c9c8
staging: nvec: remove managed resource from PS2 driver

commit 68fae2f3df455f53d0dfe33483a49020b3b758f3 upstream.

This basicly reverts commit e534f3e9 (staging:nvec: Introduce the use of
the managed version of kzalloc). Serio struct should never by managed
because it is refcounted. Doing so will lead to a double free oops on module
remove.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Fixes: e534f3e9429f ("staging:nvec: Introduce the use of the managed version of kzalloc")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec_ps2.c