mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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: Tilman Schmidt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
097933ddcd
commit
846ac30135
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue