Skip to content

Commit 1601113

Browse files
Stephen M. CameronJens Axboe
authored andcommitted
cciss: Mask off error bits of c->busaddr in cmd_special_free when calling pci_free_consistent
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 0498cc2 commit 1601113

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/block/cciss.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static int __devinit cciss_find_cfg_addrs(struct pci_dev *pdev,
193193
u64 *cfg_offset);
194194
static int __devinit cciss_pci_find_memory_BAR(struct pci_dev *pdev,
195195
unsigned long *memory_bar);
196-
196+
static inline u32 cciss_tag_discard_error_bits(ctlr_info_t *h, u32 tag);
197197

198198
/* performant mode helper functions */
199199
static void calc_bucket_map(int *bucket, int num_buckets, int nsgs,
@@ -1012,8 +1012,8 @@ static void cmd_special_free(ctlr_info_t *h, CommandList_struct *c)
10121012
temp64.val32.upper = c->ErrDesc.Addr.upper;
10131013
pci_free_consistent(h->pdev, sizeof(ErrorInfo_struct),
10141014
c->err_info, (dma_addr_t) temp64.val);
1015-
pci_free_consistent(h->pdev, sizeof(CommandList_struct),
1016-
c, (dma_addr_t) c->busaddr);
1015+
pci_free_consistent(h->pdev, sizeof(CommandList_struct), c,
1016+
(dma_addr_t) cciss_tag_discard_error_bits(h, (u32) c->busaddr));
10171017
}
10181018

10191019
static inline ctlr_info_t *get_host(struct gendisk *disk)

0 commit comments

Comments
 (0)