diff options
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_init_chip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_init_chip.c b/drivers/infiniband/hw/ipath/ipath_init_chip.c index c63de8f0fa9e..75c372136702 100644 --- a/drivers/infiniband/hw/ipath/ipath_init_chip.c +++ b/drivers/infiniband/hw/ipath/ipath_init_chip.c | |||
@@ -691,7 +691,7 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit) | |||
691 | dd->ipath_pioavregs = ALIGN(val, sizeof(u64) * BITS_PER_BYTE / 2) | 691 | dd->ipath_pioavregs = ALIGN(val, sizeof(u64) * BITS_PER_BYTE / 2) |
692 | / (sizeof(u64) * BITS_PER_BYTE / 2); | 692 | / (sizeof(u64) * BITS_PER_BYTE / 2); |
693 | if (ipath_kpiobufs == 0) { | 693 | if (ipath_kpiobufs == 0) { |
694 | /* not set by user, or set explictly to default */ | 694 | /* not set by user (this is default) */ |
695 | if ((dd->ipath_piobcnt2k + dd->ipath_piobcnt4k) > 128) | 695 | if ((dd->ipath_piobcnt2k + dd->ipath_piobcnt4k) > 128) |
696 | kpiobufs = 32; | 696 | kpiobufs = 32; |
697 | else | 697 | else |
@@ -950,6 +950,7 @@ static int ipath_set_kpiobufs(const char *str, struct kernel_param *kp) | |||
950 | dd->ipath_piobcnt2k + dd->ipath_piobcnt4k - val; | 950 | dd->ipath_piobcnt2k + dd->ipath_piobcnt4k - val; |
951 | } | 951 | } |
952 | 952 | ||
953 | ipath_kpiobufs = val; | ||
953 | ret = 0; | 954 | ret = 0; |
954 | bail: | 955 | bail: |
955 | spin_unlock_irqrestore(&ipath_devs_lock, flags); | 956 | spin_unlock_irqrestore(&ipath_devs_lock, flags); |