diff options
author | David S. Miller <davem@davemloft.net> | 2011-12-23 17:13:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-23 17:13:56 -0500 |
commit | abb434cb0539fb355c1c921f8fd761efbbac3462 (patch) | |
tree | 24a7d99ec161f8fd4dc9ff03c9c4cc93be883ce6 /drivers/infiniband/hw | |
parent | 2494654d4890316e7340fb8b3458daad0474a1b9 (diff) | |
parent | 6350323ad8def2ac00d77cdee3b79c9b9fba75c4 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
net/bluetooth/l2cap_core.c
Just two overlapping changes, one added an initialization of
a local variable, and another change added a new local variable.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_file_ops.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index b8279deb614d..7b445df6a667 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -1250,7 +1250,8 @@ err_reg: | |||
1250 | 1250 | ||
1251 | err_counter: | 1251 | err_counter: |
1252 | for (; i; --i) | 1252 | for (; i; --i) |
1253 | mlx4_counter_free(ibdev->dev, ibdev->counters[i - 1]); | 1253 | if (ibdev->counters[i - 1] != -1) |
1254 | mlx4_counter_free(ibdev->dev, ibdev->counters[i - 1]); | ||
1254 | 1255 | ||
1255 | err_map: | 1256 | err_map: |
1256 | iounmap(ibdev->uar_map); | 1257 | iounmap(ibdev->uar_map); |
@@ -1281,7 +1282,8 @@ static void mlx4_ib_remove(struct mlx4_dev *dev, void *ibdev_ptr) | |||
1281 | } | 1282 | } |
1282 | iounmap(ibdev->uar_map); | 1283 | iounmap(ibdev->uar_map); |
1283 | for (p = 0; p < ibdev->num_ports; ++p) | 1284 | for (p = 0; p < ibdev->num_ports; ++p) |
1284 | mlx4_counter_free(ibdev->dev, ibdev->counters[p]); | 1285 | if (ibdev->counters[p] != -1) |
1286 | mlx4_counter_free(ibdev->dev, ibdev->counters[p]); | ||
1285 | mlx4_foreach_port(p, dev, MLX4_PORT_TYPE_IB) | 1287 | mlx4_foreach_port(p, dev, MLX4_PORT_TYPE_IB) |
1286 | mlx4_CLOSE_PORT(dev, p); | 1288 | mlx4_CLOSE_PORT(dev, p); |
1287 | 1289 | ||
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c index 574600ef5b42..a7403248d83d 100644 --- a/drivers/infiniband/hw/qib/qib_file_ops.c +++ b/drivers/infiniband/hw/qib/qib_file_ops.c | |||
@@ -1285,7 +1285,7 @@ static int setup_ctxt(struct qib_pportdata *ppd, int ctxt, | |||
1285 | strlcpy(rcd->comm, current->comm, sizeof(rcd->comm)); | 1285 | strlcpy(rcd->comm, current->comm, sizeof(rcd->comm)); |
1286 | ctxt_fp(fp) = rcd; | 1286 | ctxt_fp(fp) = rcd; |
1287 | qib_stats.sps_ctxts++; | 1287 | qib_stats.sps_ctxts++; |
1288 | dd->freectxts++; | 1288 | dd->freectxts--; |
1289 | ret = 0; | 1289 | ret = 0; |
1290 | goto bail; | 1290 | goto bail; |
1291 | 1291 | ||
@@ -1794,7 +1794,7 @@ static int qib_close(struct inode *in, struct file *fp) | |||
1794 | if (dd->pageshadow) | 1794 | if (dd->pageshadow) |
1795 | unlock_expected_tids(rcd); | 1795 | unlock_expected_tids(rcd); |
1796 | qib_stats.sps_ctxts--; | 1796 | qib_stats.sps_ctxts--; |
1797 | dd->freectxts--; | 1797 | dd->freectxts++; |
1798 | } | 1798 | } |
1799 | 1799 | ||
1800 | mutex_unlock(&qib_mutex); | 1800 | mutex_unlock(&qib_mutex); |