1. 23 9月, 2005 1 次提交
    • L
      [PATCH] v9fs: make conv functions to check for conv buffer overflow · d06a8fb1
      Latchesar Ionkov 提交于
      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: NLatchesar Ionkov <lucho@ionkov.net>
      Cc: Eric Van Hensbergen <ericvh@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d06a8fb1
  2. 10 9月, 2005 1 次提交