aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2011-03-11 17:30:32 -0500
committerRoland Dreier <roland@purestorage.com>2011-03-14 15:09:10 -0400
commit294281373999e7fff393c04eb16092a8f00ad5aa (patch)
tree3608fd01c734f99670f43f4cfac691da63c7a5d2 /drivers/infiniband
parentb52fe09e3309c3d7069cd0e5a3bdb5b4ba45e01f (diff)
RDMA/cxgb4: Remove db_drop_task
Unloading iw_cxgb4 can crash due to the unload code trying to use db_drop_task, which is uninitialized. So remove this dead code. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/cxgb4/device.c1
-rw-r--r--drivers/infiniband/hw/cxgb4/iw_cxgb4.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c
index 54fbc1118abe..1a65ee6235bf 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
@@ -368,7 +368,6 @@ static void c4iw_rdev_close(struct c4iw_rdev *rdev)
368static void c4iw_remove(struct c4iw_dev *dev) 368static void c4iw_remove(struct c4iw_dev *dev)
369{ 369{
370 PDBG("%s c4iw_dev %p\n", __func__, dev); 370 PDBG("%s c4iw_dev %p\n", __func__, dev);
371 cancel_delayed_work_sync(&dev->db_drop_task);
372 list_del(&dev->entry); 371 list_del(&dev->entry);
373 if (dev->registered) 372 if (dev->registered)
374 c4iw_unregister_device(dev); 373 c4iw_unregister_device(dev);
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
index 2fe19ec9ba60..9f6166f59268 100644
--- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
+++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
@@ -176,7 +176,6 @@ struct c4iw_dev {
176 struct idr mmidr; 176 struct idr mmidr;
177 spinlock_t lock; 177 spinlock_t lock;
178 struct list_head entry; 178 struct list_head entry;
179 struct delayed_work db_drop_task;
180 struct dentry *debugfs_root; 179 struct dentry *debugfs_root;
181 u8 registered; 180 u8 registered;
182}; 181};