mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
mfd: htc-i2cpld: Rectify pointer offset error
Checking the result of container_of() against NULL will always result to false. Using the offset of member 'chip_out' to find the start of 'struct htcpld_chip' will result in an offset error when .get_chip() is attempting to obtain 'htcpld-in'. Instead, we'll use the correct member based on a previously the set chip label. Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
41cc08e955
commit
9b6a5ad9da
1 changed files with 10 additions and 23 deletions
Loading…
Add table
Add a link
Reference in a new issue