hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/md/persistent-data/dm-space-map-common.c
....@@ -190,6 +190,8 @@
190190
191191 static int sm_ll_init(struct ll_disk *ll, struct dm_transaction_manager *tm)
192192 {
193
+ memset(ll, 0, sizeof(struct ll_disk));
194
+
193195 ll->tm = tm;
194196
195197 ll->bitmap_info.tm = tm;
....@@ -374,10 +376,6 @@
374376 */
375377 dm_tm_unlock(ll->tm, blk);
376378 continue;
377
-
378
- } else if (r < 0) {
379
- dm_tm_unlock(ll->tm, blk);
380
- return r;
381379 }
382380
383381 dm_tm_unlock(ll->tm, blk);