diff options
| author | Christoph Hellwig <hch@lst.de> | 2014-08-21 11:09:29 -0500 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-10 12:47:02 -0700 |
| commit | 921b81a8cd5a4acc2a009778d13eedd377362c4c (patch) | |
| tree | 8efd8cfe55fa1e62de0a557c6d3579e99dc240b9 /net/lapb/lapb_timer.c | |
| parent | be98fd0ac3dd45c1aa404b101caa37f9b317ab57 (diff) | |
pnfs/blocklayout: correctly decrement extent length
When we do non-page sized reads we can underflow the extent_length variable
and read incorrect data. Fix the extent_length calculation and change to
defensive <= checks for the extent length in the read and write path.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
