diff options
author | Sage Weil <sage@newdream.net> | 2010-11-23 07:58:06 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-12-01 23:15:31 +0100 |
commit | 884ea892763d4dfba509743f65961c782c0442db (patch) | |
tree | 92a7f5b67aa06cf32457ccb2b69c28c528a48c15 /fs/ceph/mds_client.c | |
parent | Linux 2.6.37-rc3 (diff) | |
download | linux-884ea892763d4dfba509743f65961c782c0442db.tar.xz linux-884ea892763d4dfba509743f65961c782c0442db.zip |
ceph: avoid possible null deref in readdir after dir llseek
last may be NULL, but we dereference it in the else branch without
checking. Normally it doesn't trigger because last == NULL when fpos == 2,
but it could happen on a newly opened dir if the user seeks forward.
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.c')
0 files changed, 0 insertions, 0 deletions