Skip to content

Commit f5ebbeb

Browse files
ebiedermJames Bottomley
authored andcommitted
[SCSI] megaraid: Use the proper type to hold the irq number.
When testing on a Unisys machine it was discovered that the megaraid driver would not initialize as it was requesting irq 162 instead of irq 1442 it was assigned. The problem was the irq number had been truncated by being stored in an unsigned char. This patches fixes that problem and the driver now appears to work. The ioctl interface appears fundamentally broken as it exports the irq number to user space in an unsigned char. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent d41ba22 commit f5ebbeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/scsi/megaraid/mega_common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ typedef struct {
175175
uint8_t max_lun;
176176

177177
uint32_t unique_id;
178-
uint8_t irq;
178+
int irq;
179179
uint8_t ito;
180180
caddr_t ibuf;
181181
dma_addr_t ibuf_dma_h;

0 commit comments

Comments
 (0)