From bd72ab1a74edc51b18adb1c9c6c519115904c9aa Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 8 Apr 2019 02:40:12 +0000 Subject: [PATCH] qla2x00t-32gbit: Fix a bug in the RHEL 6 port git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8174 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/btree-backport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qla2x00t-32gbit/btree-backport.h b/qla2x00t-32gbit/btree-backport.h index 9c40b60bd..e1800bdde 100644 --- a/qla2x00t-32gbit/btree-backport.h +++ b/qla2x00t-32gbit/btree-backport.h @@ -115,7 +115,7 @@ static inline int __must_check btree_insert32(struct btree_head32 *head, if (p->key > key) break; } - list_add(p->entry.prev, &n->entry); + list_add(&n->entry, p->entry.prev); return 0; } @@ -133,7 +133,7 @@ static inline int __must_check btree_insert64(struct btree_head64 *head, if (p->key > key) break; } - list_add(p->entry.prev, &n->entry); + list_add(&n->entry, p->entry.prev); return 0; }