• Zhu Yi's avatar
    iwlwifi: fix use after free bug for paged rx · 29b1b268
    Zhu Yi authored
    In the paged rx patch (4854fde2), I introduced a bug that could possibly
    touch an already freed page. It is fixed by avoiding the access in this
    patch. I've also added some comments so that other people touching the
    code won't make the same mistake. In the future, if we cannot avoid
    access the page after being handled to the upper layer, we can use
    get_page/put_page to handle it. For now, it's just not necessary.
    
    It also fixed a debug message print bug reported by Stanislaw Gruszka
    <sgruszka@redhat.com>.
    Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
    Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    29b1b268
iwl-rx.c 36.1 KB