Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360834
b: refs/heads/master
c: 6b6680c
h: refs/heads/master
v: v3
  • Loading branch information
Chen Gang authored and Benjamin Herrenschmidt committed Mar 5, 2013
1 parent 9aefc27 commit 314976f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27777890d0fae55d14ef18791fc7994faf1bc867
refs/heads/master: 6b6680c4ea3952af8ae76915cbca41245147741b
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/platforms/pseries/hvcserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/string.h>

#include <asm/hvcall.h>
#include <asm/hvcserver.h>
Expand Down Expand Up @@ -188,9 +189,9 @@ int hvcs_get_partner_info(uint32_t unit_address, struct list_head *head,
= (unsigned int)last_p_partition_ID;

/* copy the Null-term char too */
strncpy(&next_partner_info->location_code[0],
strlcpy(&next_partner_info->location_code[0],
(char *)&pi_buff[2],
strlen((char *)&pi_buff[2]) + 1);
sizeof(next_partner_info->location_code));

list_add_tail(&(next_partner_info->node), head);
next_partner_info = NULL;
Expand Down

0 comments on commit 314976f

Please sign in to comment.