[PATCH] firmware/dcdbas: add size check in smi_data_write
authorDoug Warzecha <Douglas_Warzecha@dell.com>
Fri, 20 Oct 2006 06:29:09 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 20 Oct 2006 17:26:44 +0000 (10:26 -0700)
commitb95936cb9267e4c90a0b92361609ef5fd85a0a5f
treec6925759f6539a9f54fd20022a4f6bd79475cabc
parent1cd441f99819abdd2d919ff13e8c75af58a0fd9c
[PATCH] firmware/dcdbas: add size check in smi_data_write

Add a size check in smi_data_write to prevent possible wrapping problems
with large pos values when calling smi_data_buf_realloc on 32-bit.

Signed-off-by: Doug Warzecha <Douglas_Warzecha@dell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/firmware/dcdbas.c