net: rds: fix rds recv memory leak
In the function rds_ib_inc_free, when rds frags size is changed,
for example, firstly 4K frag is used, then 16K frag is used (for
example during uek2 to uek4 upgrade), this will make
"sg_total_lens(frag->f_sg) != ic->i_frag_sz" true.
In this case, only frag pages are freed while frag is not freed.
This will cause memory leak.
Orabug:
30034815
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
(cherry picked from commit
e877884cbdd7a0ad497b101741ecc66cafa032b3
UEK5-MASTER)
Signed-off-by: Brian Maly <brian.maly@oracle.com>