RBS2000: Avoid segfault if ts->lapd instance doesn't exist

This happens e.g. with DAHDI driver, when the DAHDI device cannot be
opened.  Let's not prematurely seg-fault early in the RBS2000 signal
handler, but take the proper error handlign for this.

Change-Id: I9223fb1568d3db7e278f07240c4be334c6602a13
This commit is contained in:
Harald Welte 2016-11-11 19:42:19 +01:00
parent dfe48fdecf
commit c1efa67c13
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ static void start_sabm_in_line(struct e1inp_line *line, int start)
continue;
llist_for_each_entry(link, &ts->sign.sign_links, list) {
if (!ts->lapd)
continue;
lapd_instance_set_profile(ts->lapd,
&lapd_profile_abis_ericsson);