aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/isdn/capi/capiutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/isdn/capi/capiutil.c b/drivers/isdn/capi/capiutil.c
index c7c29022a23a..16f2e465e5f9 100644
--- a/drivers/isdn/capi/capiutil.c
+++ b/drivers/isdn/capi/capiutil.c
@@ -989,6 +989,8 @@ _cdebbuf *capi_cmsg2str(_cmsg * cmsg)
989{ 989{
990 _cdebbuf *cdb; 990 _cdebbuf *cdb;
991 991
992 if (!cmsg->m)
993 return NULL; /* no message */
992 cdb = cdebbuf_alloc(); 994 cdb = cdebbuf_alloc();
993 if (!cdb) 995 if (!cdb)
994 return NULL; 996 return NULL;