Joel Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 1 | From 5c0ce63abf423b06ad4a9dd0340dc691cf6af7ea Mon Sep 17 00:00:00 2001 |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 2 | From: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> |
| 3 | Date: Fri, 28 Aug 2015 06:38:33 -0400 |
Joel Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 4 | Subject: [PATCH 06/15] aacraid: Fix for LD name and UID not exposed to OS |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 5 | |
| 6 | Driver sends the right size of the response buffer. |
| 7 | |
| 8 | Reviewed-by: Tomas Henzl <thenzl@redhat.com> |
| 9 | Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> |
| 10 | Reviewed-by: Karthikeya Sunkesula <Karthikeya.Sunkesula@pmcs.com> |
| 11 | Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> |
| 12 | Signed-off-by: Joel Stanley <joel@jms.id.au> |
| 13 | --- |
| 14 | drivers/scsi/aacraid/aachba.c | 4 ++-- |
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c |
Joel Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 18 | index 9b3dd6ef6a0b..fe59b0084575 100644 |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 19 | --- a/drivers/scsi/aacraid/aachba.c |
| 20 | +++ b/drivers/scsi/aacraid/aachba.c |
| 21 | @@ -570,7 +570,7 @@ static int aac_get_container_name(struct scsi_cmnd * scsicmd) |
| 22 | |
| 23 | status = aac_fib_send(ContainerCommand, |
| 24 | cmd_fibcontext, |
| 25 | - sizeof (struct aac_get_name), |
| 26 | + sizeof(struct aac_get_name_resp), |
| 27 | FsaNormal, |
| 28 | 0, 1, |
| 29 | (fib_callback)get_container_name_callback, |
| 30 | @@ -1052,7 +1052,7 @@ static int aac_get_container_serial(struct scsi_cmnd * scsicmd) |
| 31 | |
| 32 | status = aac_fib_send(ContainerCommand, |
| 33 | cmd_fibcontext, |
| 34 | - sizeof (struct aac_get_serial), |
| 35 | + sizeof(struct aac_get_serial_resp), |
| 36 | FsaNormal, |
| 37 | 0, 1, |
| 38 | (fib_callback) get_container_serial_callback, |
| 39 | -- |
Joel Stanley | 3e6c313 | 2015-11-19 23:50:22 +1030 | [diff] [blame] | 40 | 2.6.2 |
Joel Stanley | e4aa6fb | 2015-09-29 13:31:58 +0930 | [diff] [blame] | 41 | |