[SCSI] ipr: fix resource path display and formatting
authorWayne Boyer <wayneb@linux.vnet.ibm.com>
Thu, 3 Jun 2010 23:02:21 +0000 (16:02 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 21 Jul 2010 20:52:13 +0000 (13:52 -0700)
It was possible to overflow the buffer used to print out the formatted
version of the resource path.  The fix is to limit the number of
bytes that get formatted.

This patch also updates the ipr_show_resource_path function to display the
resource address for devices that are attached to adapters that don't
support resource paths.

Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found