Repository navigation
Commit c354557
rbd: fix null dereference in dout
The order parameter is sometimes NULL in _rbd_dev_v2_snap_size(), but
the dout() always derefences it. Move this to another dout() protected
by a check that order is non-NULL.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <alex.elder@linaro.org>1 parent 03507db commit c354557
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3702 | 3702 | | |
3703 | 3703 | | |
3704 | 3704 | | |
3705 | | - | |
| 3705 | + | |
3706 | 3706 | | |
| 3707 | + | |
| 3708 | + | |
3707 | 3709 | | |
3708 | 3710 | | |
3709 | | - | |
3710 | | - | |
| 3711 | + | |
| 3712 | + | |
3711 | 3713 | | |
3712 | 3714 | | |
3713 | 3715 | | |
| |||
0 commit comments