]> err.no Git - linux-2.6/commit
IB/ipath: Don't corrupt pending mmap list when unmapped objects are freed
authorRobert Walsh <rjwalsh@pathscale.com>
Sat, 28 Apr 2007 04:07:23 +0000 (21:07 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 1 May 2007 00:30:28 +0000 (17:30 -0700)
commit6b66b2da1e821181a001c00b04a807724ad803cd
tree8ddbae34ef4ad3e9242f91b6d7df4abbd9f3a161
parent9ba6d5529dd919b442eedf5bef1dd28aca2ee9fe
IB/ipath: Don't corrupt pending mmap list when unmapped objects are freed

Fix the pending mmap code so it doesn't corrupt the list of pending
mmaps and crash the machine when pending mmaps are destroyed without
first being mapped.  Also, remove an unused variable, and use standard
kernel lists instead of our own homebrewed linked list implementation
to keep the pending mmap list.

Signed-off-by: Robert Walsh <robert.walsh@qlogic.com>
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_cq.c
drivers/infiniband/hw/ipath/ipath_mmap.c
drivers/infiniband/hw/ipath/ipath_qp.c
drivers/infiniband/hw/ipath/ipath_srq.c
drivers/infiniband/hw/ipath/ipath_verbs.c
drivers/infiniband/hw/ipath/ipath_verbs.h