aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorKAMBAROV, ZAUR <[email protected]>2005-06-28 20:45:06 -0700
committerLinus Torvalds <[email protected]>2005-06-28 21:20:33 -0700
commita8f5034540195307362d071a8b387226b410469f (patch)
tree6b11830d72e3d56178c705010583713df5842416 /net/lapb/lapb_timer.c
parent4cceb4d13abaedbd52e54053367c793ed4aedb6b (diff)
[PATCH] coverity: i386: build.c: negative return to unsigned fix
Variable "c" was declared as an unsigned int, but used in: 125 for (i=0 ; (c=read(fd, buf, sizeof(buf)))>0 ; i+=c ) 126 if (write(1, buf, c) != c) 127 die("Write call failed"); (akpm: read() can return -1. If it does, we fill the disk up with garbage). Signed-off-by: Zaur Kambarov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions