Message ID | 1592065636-28333-4-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lustre: patches landed for week of June 8 2020 | expand |
diff --git a/net/lnet/lnet/api-ni.c b/net/lnet/lnet/api-ni.c index 7c91800..d6694cb 100644 --- a/net/lnet/lnet/api-ni.c +++ b/net/lnet/lnet/api-ni.c @@ -927,12 +927,10 @@ static void lnet_assert_wire_constants(void) struct list_head *e = rec->rec_active.next; list_del_init(e); - if (rec->rec_type == LNET_COOKIE_TYPE_MD) { - kfree(list_entry(e, struct lnet_libmd, md_list)); - - } else { /* NB: Active MEs should be attached on portals */ + if (rec->rec_type == LNET_COOKIE_TYPE_MD) + lnet_md_free(list_entry(e, struct lnet_libmd, md_list)); + else /* NB: Active MEs should be attached on portals */ LBUG(); - } count++; }