Skip to contentSkip to conversation

mISDN: Fix NULL pointer bug in if-condition of mISDN_dsp

PATCH In review Karsten Keil 1 participant 1 message Apr 23, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/28 mISDN: Fix NULL pointer bug in if-condition of mISDN_dsp

From: Andreas Eversberg <[email protected]>
Fix bug in cases where dsp->conf was NULL.

---
 drivers/isdn/mISDN/dsp_cmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/isdn/mISDN/dsp_cmx.c +1 -1
index 334feab..b7589c2 100644
@@ -1328,7 +1328,7 @@ dsp_cmx_send_member(struct dsp *dsp, int len, s32 *c, int members)
 		}
 		if (dsp->conf && dsp->conf->software && dsp->conf->hardware)
 			tx_data_only = 1;
-		if (dsp->conf->software && dsp->echo.hardware)
+		if (dsp->echo.software && dsp->echo.hardware)
 			tx_data_only = 1;
 	}
 
Signature · 1 line
1.7.3.4