diff options
| author | Luis Henriques <[email protected]> | 2018-11-05 19:00:52 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2018-11-08 16:51:11 +0000 |
| commit | 71f2cc64d027d712f29bf8d09d3e123302d5f245 (patch) | |
| tree | 1544bc4e5ac8b4588f015352e83f5595e70755b7 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | ceph: add destination file data sync before doing any remote copy (diff) | |
| download | kernel-71f2cc64d027d712f29bf8d09d3e123302d5f245.tar.gz kernel-71f2cc64d027d712f29bf8d09d3e123302d5f245.zip | |
ceph: quota: fix null pointer dereference in quota check
This patch fixes a possible null pointer dereference in
check_quota_exceeded, detected by the static checker smatch, with the
following warning:
fs/ceph/quota.c:240 check_quota_exceeded()
error: we previously assumed 'realm' could be null (see line 188)
Fixes: b7a2921765cf ("ceph: quota: support for ceph.quota.max_files")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Luis Henriques <[email protected]>
Reviewed-by: "Yan, Zheng" <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
