diff options
| author | Guoqing Jiang <[email protected]> | 2016-04-01 09:08:49 +0000 |
|---|---|---|
| committer | Shaohua Li <[email protected]> | 2016-04-01 20:05:50 +0000 |
| commit | f9a67b1182e5abfcfcec24762ea95a77332f035e (patch) | |
| tree | 9c7b17f98a7838daa26c1573e7d393350aeab9a4 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | MD: add rdev reference for super write (diff) | |
| download | kernel-f9a67b1182e5abfcfcec24762ea95a77332f035e.tar.gz kernel-f9a67b1182e5abfcfcec24762ea95a77332f035e.zip | |
md/bitmap: clear bitmap if bitmap_create failed
If bitmap_create returns an error, we need to call
either bitmap_destroy or bitmap_free to do clean up,
and the selection is based on mddev->bitmap is set
or not.
And the sysfs_put(bitmap->sysfs_can_clear) is moved
from bitmap_destroy to bitmap_free, and the comment
of bitmap_create is changed as well.
Signed-off-by: Guoqing Jiang <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
