On Tue, Sep 01, 2020 at 08:38:55PM +0800, Weihang Li wrote: > From: Xi Wang <wangxi11@xxxxxxxxxx> > > It's not safe to access the next CQ in list_for_each_entry() after invoking > ib_free_cq(), because the CQ has already been freed in current iteration. > It should be replaced by list_for_each_entry_safe(). > > Fixes: c7ff819aefea ("RDMA/core: Introduce shared CQ pool API") > Signed-off-by: Xi Wang <wangxi11@xxxxxxxxxx> > Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx> > --- > drivers/infiniband/core/cq.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied to for-rc, thanks Jason