diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2005-09-22 21:43:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-22 22:17:33 -0700 |
commit | d06a8fb130085c9f61e4c1a40445163087ecf89f (patch) | |
tree | c98595f83201adcd791ef9d3509aa1f157f3dfa2 /Documentation/DMA-API.txt | |
parent | 89559a6119e9779c732fdc7aef5e175bf090dd69 (diff) | |
download | op-kernel-dev-d06a8fb130085c9f61e4c1a40445163087ecf89f.zip op-kernel-dev-d06a8fb130085c9f61e4c1a40445163087ecf89f.tar.gz |
[PATCH] v9fs: make conv functions to check for conv buffer overflow
buf_check_size function checks if the conv buffer has enough space for the
performed operation, but it doesn't return the result back to the calling
function, only logs an error in the log.
The report-back-error functionality was lost when buf_check_size was
converted from macro to inline function. The return in the macro used to
exit from the functions that include it, after the conversion it just exits
from the inline function itself.
The patch makes buf_check_size to return flag and all functions that use
it check if they should perform the operation, or exit.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/DMA-API.txt')
0 files changed, 0 insertions, 0 deletions