DAHDI 2.11.0: Kernel Oops

General discussions about Asterisk.

Moderators: Moderator, Support

DAHDI 2.11.0: Kernel Oops

Postby dl9rdz » Fri Jan 01, 2016 6:22 pm

DAHDI Version 2.11.0 on a Raspberry 2 (Raspbian, Linux Kernel 4.1.15-v7+) causes a Kernel Oops
(NULL pointer access in the dahdi kernel module) when used with allstarlink software (old asterisk version with app_rpt)

Problem can be solved by a simple patch to dahdi-base.c:
Code: Select all
@@ -1523,7 +1523,7 @@
  */
static void dahdi_disable_hw_preechocan(struct dahdi_chan *chan)
{
-   if (chan->span->ops->disable_hw_preechocan)
+   if (chan && chan->span && chan->span->ops->disable_hw_preechocan)
      chan->span->ops->disable_hw_preechocan(chan);
}

Is there a chance for getting this patch into the next dahdi release?

-Hans
dl9rdz
Newsterisk
 
Posts: 1
Joined: Fri Jan 01, 2016 6:12 pm

Re: DAHDI 2.11.0: Kernel Oops

Postby david55 » Mon Jan 04, 2016 7:48 am

Not by submitting it here. The only way that patches will be accepted is if you submit them as "code or documentation" using the bug tracker. That is necessary in order to ensure that DIgium have a licence, from you, to use the code commercially.

I would suggest you delete it from here, as there is a risk that someone will copy it from here and try to submit to the bug tracker, in their own name, which would mean that it was not properly licensed.

I'm assuming that 2.11.0 is a fully supported version.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 8 guests