]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit961a34997db07db709cce384b6a3a437b70aee14
treea38a5867f8afbdd6adc2b6d34d7f83afb7473243
parenta05552eb058caba6e4fae1ea274cb90883c6f8eb
[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