diff options
author | Wolfram Sang <[email protected]> | 2021-03-12 12:57:34 +0100 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2021-03-18 12:15:29 +0100 |
commit | 71581562ee36032d2d574a9b23ad4af6d6a64cf7 (patch) | |
tree | 0caff08400a9805f787ae93d8c8f9d87e256ab9d /include/linux/compiler-gcc.h | |
parent | fd6c3f45bf300b57e45b1b87786907bcb61f61e1 (diff) |
i2c: bail out early when RDWR parameters are wrong
The buggy parameters currently get caught later, but emit a noisy WARN.
Userspace should not be able to trigger this, so add similar checks much
earlier. Also avoids some unneeded code paths, of course. Apply kernel
coding stlye to a comment while here.
Reported-by: [email protected]
Tested-by: [email protected]
Signed-off-by: Wolfram Sang <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions