doubletalk: probe failure causes OOPS
authorAlan Cox <alan@linux.intel.com>
Mon, 15 Dec 2014 11:33:08 +0000 (11:33 +0000)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Jan 2015 12:56:05 +0000 (13:56 +0100)
commit7aa4d5c8ffed00ff751f1d8d492ae89d7f3f9736
tree845400d5684f630e97069d6f4427f1d51e628620
parentb69a7806de1d4073aad2d9e5c9371a7341cf9eaa
doubletalk: probe failure causes OOPS

The code bothers to probe for the device, but on failing to find it proceeds
to try and release a NULL resource, thereby ruining it's prior good
behaviour

Resolves-Bug: https://bugzilla.kernel.org/show_bug.cgi?id=88581
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/staging/speakup/speakup_dtlk.c