From: Dimitris Papastamos Date: Tue, 7 Dec 2010 16:30:38 +0000 (+0000) Subject: ASoC: soc-core: Fix null pointer dereference X-Git-Tag: v2.6.38-rc1~236^2^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f078d8c0790e94e09af975ca0b870e2f050e17;p=pandora-kernel.git ASoC: soc-core: Fix null pointer dereference In case the codec driver did not provide a read/write function, codec->driver->read|write will be NULL. Ensure that we use the one specified in codec->read|write to avoid oopsing when we access the debugfs entries. This is achieved by using snd_soc_read() and snd_soc_write(). Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed