Skip to content

Commit

Permalink
qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
Browse files Browse the repository at this point in the history
[Bart: additional sparse warning caused by this patch]
[jejb: fix sparse warning]
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Cc: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
  • Loading branch information
Himanshu Madhani authored and James Bottomley committed Apr 10, 2015
1 parent dd83cb2 commit 6cbfb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_tmpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static inline void
qla27xx_write_reg(__iomem struct device_reg_24xx *reg,
uint offset, uint32_t data, void *buf)
{
__iomem void *window = reg + offset;
__iomem void *window = (void __iomem *)reg + offset;

if (buf) {
WRT_REG_DWORD(window, data);
Expand Down

0 comments on commit 6cbfb1e

Please sign in to comment.