[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)
commit5adcbeb34d2a031d3baca227eef23e56734006ba
treea38a5867f8afbdd6adc2b6d34d7f83afb7473243
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02
[SCSI] ipr: fix resource path display and formatting

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>
drivers/scsi/ipr.c
drivers/scsi/ipr.h