aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorAravind Srinivasan <[email protected]>2009-04-02 16:58:59 -0700
committerLinus Torvalds <[email protected]>2009-04-02 19:05:05 -0700
commit2c53d9109f077900e140edb8b766132ad93b81cc (patch)
tree082c063da6c83fe2a2aa84ed0b33c504e19d05f4 /net/lapb/lapb_iface.c
parentedb79a213223488735fae1d408f4c136e9ed25d6 (diff)
relay: fix for possible loss/corruption of produced subbufs
Fix possible loss/corruption of produced subbufs in relay_subbufs_consumed(). When buf->subbufs_produced wraps around after UINT_MAX and buf->subbufs_consumed is still < UINT_MAX, the condition if (buf->subbufs_consumed > buf->subbufs_produced) will be true even for certain valid values of subbufs_consumed. This may lead to loss or corruption of produced subbufs. Signed-off-by: Aravind Srinivasan <[email protected]> Cc: Tom Zanussi <[email protected]> Cc: Tom Zanussi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions