]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ark3116: fix NULL-pointer dereference
authorJohan Hovold <jhovold@gmail.com>
Mon, 15 Oct 2012 16:20:52 +0000 (18:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Oct 2012 17:25:54 +0000 (10:25 -0700)
commitfbd48aa8a6a3945a45915c3ddd3a632db9bce27d
treed9de48ccd413b2a87e4201dc2f2ee3cb55c14299
parent54a002d38e178e1abd9b76468f40a7966d0b001b
USB: ark3116: fix NULL-pointer dereference

Fix NULL-pointer dereference at release by replacing attach and release
with port_probe and port_remove.

Since commit c3e213df083439e (device-core: Ensure drvdata = NULL when no
driver is bound) the port private data is NULL when release is called.

Compile-only tested.

Cc: <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ark3116.c