DAHDI 2.11.0: Kernel Oops

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]@@ -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);
    }
    [/code]
    Is there a chance for getting this patch into the next dahdi release?

-Hans

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.