]> git.baikalelectronics.ru Git - kernel.git/commit
xsysace: Fix dereferencing of cf_id after hd_driveid removal
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 8 Apr 2009 12:13:04 +0000 (14:13 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 8 Apr 2009 12:13:04 +0000 (14:13 +0200)
commitd82d9bfad4e6053538ec7e2a717a0f9b1d844a1b
tree1959e043ecd40e0ce92b0b3a6f6af125c5bbfcf3
parentd3d5313b16adee3b06209ea80cb694c5feeff4a1
xsysace: Fix dereferencing of cf_id after hd_driveid removal

Commit 9919d3a0e50c6edc4da6a698b899d3801bef3d38 (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>
drivers/block/xsysace.c