summaryrefslogtreecommitdiff
path: root/Documentation/driver-api
diff options
context:
space:
mode:
authorLen Baker <len.baker@gmx.com>2021-09-25 17:34:55 +0300
committerJonathan Corbet <corbet@lwn.net>2021-10-26 18:43:54 +0300
commit3577cdb23b8f76612017b82a8a1f89ac55f4d313 (patch)
treec47ce88f515504a9b1073fbf2b17ecf1ea843e8e /Documentation/driver-api
parent6e74e68d0b4cec4255d3af09cfa5426b8e20d549 (diff)
downloadlinux-3577cdb23b8f76612017b82a8a1f89ac55f4d313.tar.xz
docs: deprecated.rst: Clarify open-coded arithmetic with literals
Although using literals for size calculation in allocator arguments may be harmless due to compiler warnings in case of overflows, it is better to refactor the code to avoid the use of open-coded arithmetic. So, clarify the preferred way in these cases. Suggested-by: Kees Cook <keescook@chromium.org> Signed-off-by: Len Baker <len.baker@gmx.com> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20210925143455.21221-1-len.baker@gmx.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/driver-api')
0 files changed, 0 insertions, 0 deletions