The patch titled
     Fix |/|| confusion in fusion driver
has been removed from the -mm tree.  Its filename was
     fix--confusion-in-fusion-driver.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Fix |/|| confusion in fusion driver
From: Dirk Mueller <[EMAIL PROTECTED]>

This patch corrects a |/|| confusion in mptscsih_copy_sense_data.  Using ||
means that the data that ends up being written is (almost always) 1,
instead of being bit-wise or'ed.

Acked-by: Eric Moore <[EMAIL PROTECTED]>
Cc: James Bottomley <[EMAIL PROTECTED]>
Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
[EMAIL PROTECTED]: updates]
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/message/fusion/mptbase.h  |    2 +-
 drivers/message/fusion/mptscsih.c |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff -puN drivers/message/fusion/mptscsih.c~fix--confusion-in-fusion-driver 
drivers/message/fusion/mptscsih.c
--- a/drivers/message/fusion/mptscsih.c~fix--confusion-in-fusion-driver
+++ a/drivers/message/fusion/mptscsih.c
@@ -2463,11 +2463,11 @@ mptscsih_copy_sense_data(struct scsi_cmn
                                ioc->events[idx].event = 
MPI_EVENT_SCSI_DEVICE_STATUS_CHANGE;
                                ioc->events[idx].eventContext = 
ioc->eventContext;
 
-                               ioc->events[idx].data[0] = (pReq->LUN[1] << 24) 
||
-                                       (MPI_EVENT_SCSI_DEV_STAT_RC_SMART_DATA 
<< 16) ||
-                                       (sc->device->channel << 8) || 
sc->device->id;
+                               ioc->events[idx].data[0] = (pReq->LUN[1] << 24) 
|
+                                       (MPI_EVENT_SCSI_DEV_STAT_RC_SMART_DATA 
<< 16) |
+                                       (sc->device->channel << 8) | 
sc->device->id;
 
-                               ioc->events[idx].data[1] = (sense_data[13] << 
8) || sense_data[12];
+                               ioc->events[idx].data[1] = (sense_data[13] << 
8) | sense_data[12];
 
                                ioc->eventContext++;
                                if (hd->ioc->pcidev->vendor ==
diff -puN drivers/message/fusion/mptbase.h~fix--confusion-in-fusion-driver 
drivers/message/fusion/mptbase.h
--- a/drivers/message/fusion/mptbase.h~fix--confusion-in-fusion-driver
+++ a/drivers/message/fusion/mptbase.h
@@ -436,7 +436,7 @@ typedef struct _MPT_SAS_MGMT {
 typedef struct _mpt_ioctl_events {
        u32     event;          /* Specified by define above */
        u32     eventContext;   /* Index or counter */
-       int     data[2];        /* First 8 bytes of Event Data */
+       u32     data[2];        /* First 8 bytes of Event Data */
 } MPT_IOCTL_EVENTS;
 
 /*
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are


-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to