summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2009-04-08 14:13:04 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-04-08 14:13:04 +0200
commitf0edef8c8b35f04b89311590dd6f1249f07fab3a (patch)
tree1959e043ecd40e0ce92b0b3a6f6af125c5bbfcf3 /arch
parentfb4252e59452c18b88af014a2c4ee697bbf8cbc6 (diff)
downloadlinux-3.10-f0edef8c8b35f04b89311590dd6f1249f07fab3a.tar.gz
linux-3.10-f0edef8c8b35f04b89311590dd6f1249f07fab3a.tar.bz2
linux-3.10-f0edef8c8b35f04b89311590dd6f1249f07fab3a.zip
xsysace: Fix dereferencing of cf_id after hd_driveid removal
Commit 4aaf2fec718f6fbf38668edf733a0ab09a49cab1 (xsysace: make it 'struct hd_driveid'-free) converted the cf_id member of 'struct ace_device' from a 'struct hd_driveid' to a u16 array. However, references to the base of the structure were still using the '&' operator. When the address was used with the ata_id_u32() macro, the compiler used the size of the entire array instead of sizeof(u16) to calculate the offset from the base address. This patch removes the use of the '&' operator from all references of cf_id to fix the bug and remove future confusion. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions