aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorRoland Stigge <[email protected]>2012-09-03 10:14:29 +0200
committerMark Brown <[email protected]>2012-09-06 07:44:10 +0800
commitb4b8482690d97ea5421acf71e9e397fe0c5a25b8 (patch)
tree79ea09077400fbe684e9ca99f516837595af80f9 /lib/string_helpers.c
parent38e271cde5ae62b0b94ff8e8e7e1e1395da7dbf5 (diff)
spi/pl022: Fix chipselects pointer computation
The new chip select handling via GPIO introduced a pointer computation bug: (int *) pl022 + sizeof(struct pl022) doesn't point to the data immediately after the actual struct pl022 (as was intended) but to a multiple of bytes after it because of the (int *) type. Replacing the kludgy pointer arithmetic with managed memory allocation for the chip selects. Reported-by: Shiraz Hashim <[email protected]> Signed-off-by: Roland Stigge <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions