Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5ebbeb5 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by James Bottomley
Browse files

[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: default avatarEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent d41ba22a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ typedef struct {
	uint8_t			max_lun;

	uint32_t		unique_id;
	uint8_t			irq;
	int			irq;
	uint8_t			ito;
	caddr_t			ibuf;
	dma_addr_t		ibuf_dma_h;