]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ASoC: Fix null dereference in ak4535_remove()
authorDan Carpenter <error27@gmail.com>
Mon, 6 Apr 2009 01:50:46 +0000 (03:50 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Apr 2009 09:53:37 +0000 (10:53 +0100)
commit09318c47b6121c8d18cee50ca7e270a8b7dfd274
treec63f57d625b19c869765fa6ba949d6b3821dbc7b
parent103f211d0be2bed75b5739de62a10415ef0bbc25
ASoC: Fix null dereference in ak4535_remove()

ak4535_remove() from sound/soc/codecs/ak4535.c calls
i2c_unregister_device() with a possibly null pointer.

This bug was found by smatch (http://repo.or.cz/w/smatch.git/).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ak4535.c