]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: brcmstb: allocate correct amount of memory for regmap
authorWolfram Sang <wsa@the-dreams.de>
Sun, 21 Feb 2016 14:16:48 +0000 (15:16 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 1 Mar 2016 18:16:45 +0000 (19:16 +0100)
commit7314d22a2f5bd40468d57768be368c3d9b4bd726
tree17a760b288cc5ad724bc066f58853beac95f964e
parentfc77dbd34c5c99bce46d40a2491937c3bcbd10af
i2c: brcmstb: allocate correct amount of memory for regmap

We want the size of the struct, not of a pointer to it. To be future
proof, just dereference the pointer to get the desired type.

Fixes: dd1aa2524bc5 ("i2c: brcmstb: Add Broadcom settop SoC i2c controller driver")
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-brcmstb.c