aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ehea/ehea_main.c
diff options
context:
space:
mode:
authorThomas Klein <tklein@de.ibm.com>2009-02-20 03:42:01 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-20 03:42:01 -0500
commit3876732c12cd2b9896e8c3e86fad142112e93569 (patch)
tree34a7d2da6fcdc240d127b6c15d55282d6ff450a1 /drivers/net/ehea/ehea_main.c
parent376801172ade1ab80efdd42dba859282400885ed (diff)
ehea: Fix memory hotplug handling
Added missing set_bit() to disable data transfer when a memchange notification is handled Signed-off-by: Thomas Klein <tklein@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ehea/ehea_main.c')
-rw-r--r--drivers/net/ehea/ehea_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 958dacbb4974..40c34bfe2cfa 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -3517,12 +3517,14 @@ static int ehea_mem_notifier(struct notifier_block *nb,
3517 /* Readd canceled memory block */ 3517 /* Readd canceled memory block */
3518 case MEM_ONLINE: 3518 case MEM_ONLINE:
3519 ehea_info("memory is going online"); 3519 ehea_info("memory is going online");
3520 set_bit(__EHEA_STOP_XFER, &ehea_driver_flags);
3520 if (ehea_add_sect_bmap(arg->start_pfn, arg->nr_pages)) 3521 if (ehea_add_sect_bmap(arg->start_pfn, arg->nr_pages))
3521 return NOTIFY_BAD; 3522 return NOTIFY_BAD;
3522 ehea_rereg_mrs(NULL); 3523 ehea_rereg_mrs(NULL);
3523 break; 3524 break;
3524 case MEM_GOING_OFFLINE: 3525 case MEM_GOING_OFFLINE:
3525 ehea_info("memory is going offline"); 3526 ehea_info("memory is going offline");
3527 set_bit(__EHEA_STOP_XFER, &ehea_driver_flags);
3526 if (ehea_rem_sect_bmap(arg->start_pfn, arg->nr_pages)) 3528 if (ehea_rem_sect_bmap(arg->start_pfn, arg->nr_pages))
3527 return NOTIFY_BAD; 3529 return NOTIFY_BAD;
3528 ehea_rereg_mrs(NULL); 3530 ehea_rereg_mrs(NULL);