diff options
| author | Jan Harkes <jaharkes@cs.cmu.edu> | 2005-01-10 17:26:36 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-10 17:26:36 -0800 |
| commit | e926095b7dd6e715d931486f16a85250807dae64 (patch) | |
| tree | 59382f1a4155ad1f1025a480cb82edec417b8001 /include/linux | |
| parent | 019ae484a3615f2736a4b2054716f2679da54c06 (diff) | |
[PATCH] coda: bounds checking
This patch adds bounds checks for tainted scalars (reported by Brian Fulton
and Ted Unangst, Coverity Inc.).
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/coda.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/coda.h b/include/linux/coda.h index 309cbbe35e67..bbc5afcd7db6 100644 --- a/include/linux/coda.h +++ b/include/linux/coda.h @@ -761,8 +761,8 @@ union coda_downcalls { struct ViceIoctl { void __user *in; /* Data to be transferred in */ void __user *out; /* Data to be transferred out */ - short in_size; /* Size of input buffer <= 2K */ - short out_size; /* Maximum size of output buffer, <= 2K */ + u_short in_size; /* Size of input buffer <= 2K */ + u_short out_size; /* Maximum size of output buffer, <= 2K */ }; struct PioctlData { |
