aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorJeremy Kerr <[email protected]>2009-03-03 19:38:07 +0000
committerBenjamin Herrenschmidt <[email protected]>2009-03-11 17:11:32 +1100
commitd219889b769a56901c9a916187ee0af95e6ff8a6 (patch)
treef43aa77340d1746c46ecef43dbfcf73dacb85038 /net/lapb/lapb_subr.c
parente7eec2fc27d7dbefd5852c36b3fe6229e6302c99 (diff)
powerpc/spufs: Check file offset before calculating write size in fixed-sized files
Based on an original patch from Roel Kluin <[email protected]>. The write size calculated during regs and fpcr writes may currently go negative. Because size is unsigned, this will wrap, and our check for EFBIG will fail. Instead, do the check for EFBIG before subtracting from size. Signed-off-by: Jeremy Kerr <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions