From: Wolfram Sang <hidden> Date: 2016-02-21 14:16:48
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.
Signed-off-by: Wolfram Sang <redacted>
---
drivers/i2c/busses/i2c-brcmstb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
On Sun, Feb 21, 2016 at 6:16 AM, Wolfram Sang [off-list ref] wrote:
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.
This looks like it fixes like a fairly serious issue: before this
change, the driver may modify memory that wasn't allocated for this
struct. Shouldn't this also have Cc: stable?
From: Wolfram Sang <hidden> Date: 2016-02-22 08:05:22
On Sun, Feb 21, 2016 at 10:33:14PM -0800, Gregory Fong wrote:
On Sun, Feb 21, 2016 at 6:16 AM, Wolfram Sang [off-list ref] wrote:
quoted
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.
This looks like it fixes like a fairly serious issue: before this
change, the driver may modify memory that wasn't allocated for this
struct. Shouldn't this also have Cc: stable?
Surely. I usually add the tag when committing, not when sending out.
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.
Signed-off-by: Wolfram Sang <redacted>
From: Wolfram Sang <hidden> Date: 2016-03-01 18:19:36
On Sun, Feb 21, 2016 at 03:16:48PM +0100, Wolfram Sang wrote:
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.
Signed-off-by: Wolfram Sang <redacted>