]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
matrox maven: fix a broken error path
authorJean Delvare <khali@linux-fr.org>
Tue, 12 Aug 2008 23:20:04 +0000 (23:20 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:05:01 +0000 (11:05 -0700)
commit8226ee76cbed5dc35767bab6c044ee373145908e
treea2ad41e312f909c01434befec463ad4a93f17332
parent1a71e43a51949bda90a6944ef27ae057df80dce6
matrox maven: fix a broken error path

commit 5ede40f87957c6ededf9284c8339722a97b9dfb6 upstream

I broke an error path with d03c21ec0be7787ff6b75dcf56c0e96209ccbfbd,
sorry about that.

The machine will crash if the i2c_attach_client() or maven_init_client()
calls fail, although nobody has yet reported this happening.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: Petr Vandrovec <VANDROVE@vc.cvut.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/matrox/matroxfb_maven.c