From: Tilman Schmidt Date: Sun, 7 Jun 2009 09:09:24 +0000 (+0000) Subject: isdn: prevent NULL ptr Oops in capi_cmsg2str() X-Git-Tag: v2.6.31-rc1~330^2~111 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d31acda9f8eaa27e2fd232712f7e1f3e9a79bdb;p=pandora-kernel.git isdn: prevent NULL ptr Oops in capi_cmsg2str() The dereferencing of the private pointer cmsg->m in capi_cmsg2str() may cause an Oops in case of an error, which is particularly inconvenient as that function is typically used to format an error message. Add a NULL pointer check to avoid this. Impact: error handling improvement Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller --- Reading git-diff-tree failed