Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI fix from James Bottomley:
"A single bug fix for hpsa.

The user visible consequences aren't clear, but the ioaccel2 raid
acceleration may misfire on the malformed request assuming the payload
is big enough to require chaining (more than 31 sg entries)"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: hpsa: correct ioaccel2 chaining

+7 -1
+6 -1
drivers/scsi/hpsa.c
··· 4940 4940 curr_sg->reserved[0] = 0; 4941 4941 curr_sg->reserved[1] = 0; 4942 4942 curr_sg->reserved[2] = 0; 4943 - curr_sg->chain_indicator = 0x80; 4943 + curr_sg->chain_indicator = IOACCEL2_CHAIN; 4944 4944 4945 4945 curr_sg = h->ioaccel2_cmd_sg_list[c->cmdindex]; 4946 4946 } ··· 4956 4956 curr_sg->chain_indicator = 0; 4957 4957 curr_sg++; 4958 4958 } 4959 + 4960 + /* 4961 + * Set the last s/g element bit 4962 + */ 4963 + (curr_sg - 1)->chain_indicator = IOACCEL2_LAST_SG; 4959 4964 4960 4965 switch (cmd->sc_data_direction) { 4961 4966 case DMA_TO_DEVICE:
+1
drivers/scsi/hpsa_cmd.h
··· 517 517 u8 reserved[3]; 518 518 u8 chain_indicator; 519 519 #define IOACCEL2_CHAIN 0x80 520 + #define IOACCEL2_LAST_SG 0x40 520 521 }; 521 522 522 523 /*