Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Fix double free.



details:   https://anonhg.NetBSD.org/src-all/rev/7d4b21dfd8a3
branches:  trunk
changeset: 952129:7d4b21dfd8a3
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Wed Jul 01 12:27:58 2020 +1000

description:
Fix double free.

diffstat:

 sys/dev/pci/if_iwn.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 3b3f0bac2ba5 -r 7d4b21dfd8a3 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Wed Jul 01 12:26:58 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Wed Jul 01 12:27:58 2020 +1000
@@ -2522,7 +2522,6 @@
                /* No node found ... process differently. */
        }
 
-       m_free(m);
                (void) ieee80211_input_all(ic, m, rssi + 116, 0);
        splx(s);
 }



Home | Main Index | Thread Index | Old Index