summaryrefslogtreecommitdiffstats
path: root/kernel/arch/powerpc/platforms/pseries/hvcserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/powerpc/platforms/pseries/hvcserver.c')
-rw-r--r--kernel/arch/powerpc/platforms/pseries/hvcserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/arch/powerpc/platforms/pseries/hvcserver.c b/kernel/arch/powerpc/platforms/pseries/hvcserver.c
index eedb64594..94a6e5612 100644
--- a/kernel/arch/powerpc/platforms/pseries/hvcserver.c
+++ b/kernel/arch/powerpc/platforms/pseries/hvcserver.c
@@ -142,11 +142,11 @@ int hvcs_get_partner_info(uint32_t unit_address, struct list_head *head,
int more = 1;
int retval;
- memset(pi_buff, 0x00, PAGE_SIZE);
/* invalid parameters */
if (!head || !pi_buff)
return -EINVAL;
+ memset(pi_buff, 0x00, PAGE_SIZE);
last_p_partition_ID = last_p_unit_address = ~0UL;
INIT_LIST_HEAD(head);