Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 846ac301 authored by Tilman Schmidt's avatar Tilman Schmidt Committed by David S. Miller
Browse files

isdn/gigaset: fix NULL pointer dereference



In do_action, a NULL pointer might be passed to function start_dial
which will dereference it.
Fix by adding a check for NULL before the call.

Spotted with Coverity.

Signed-off-by: default avatarTilman Schmidt <tilman@imap.cc>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 097933dd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1380,6 +1380,11 @@ static void do_action(int action, struct cardstate *cs,
	/* events from the LL */

	case ACT_DIAL:
		if (!ev->ptr) {
			*p_genresp = 1;
			*p_resp_code = RSP_ERROR;
			break;
		}
		start_dial(at_state, ev->ptr, ev->parameter);
		break;
	case ACT_ACCEPT: