[lchan] Fix the SAPI reset in the chan allocation...
Reset the whole array instead of just the first element.
This commit is contained in:
parent
b9bda7bebd
commit
45b0243a41
|
@ -213,7 +213,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type)
|
|||
lchan->use_count = 0;
|
||||
|
||||
/* clear sapis */
|
||||
memset(lchan->sapis, 0, sizeof(lchan->sapis));
|
||||
memset(lchan->sapis, 0, ARRAY_SIZE(lchan->sapis));
|
||||
|
||||
/* Configure the time and start it so it will be closed */
|
||||
lchan->release_timer.cb = auto_release_channel;
|
||||
|
|
Loading…
Reference in New Issue