diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-11-11 20:48:43 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-11-11 20:48:43 +0000 |
commit | be667a4234fb7066e2304c35fba40699263a2910 (patch) | |
tree | f1feef549c4a4ad19a2f98c25a71f8436efd681f | |
parent | cd9ee92486f7b17befea308de566cf74dd62fc25 (diff) |
Make sure zaptel doesn't crash the kernel when bringing hdlc devices down
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@815 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | zaptel.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1269,7 +1269,8 @@ static int zt_net_open(hdlc_device *hdlc) #ifdef NEW_HDLC_INTERFACE static int zt_net_stop(struct net_device *dev) { - hdlc_device *hdlc = dev_to_hdlc(dev); + hdlc_device *h = dev_to_hdlc(dev); + struct zt_hdlc *hdlc = h->priv; #else static void zt_net_close(hdlc_device *hdlc) { |