kernel/drivers/md/persistent-data/dm-space-map-common.c
.. .. @@ -190,6 +190,8 @@ 190 190 191 191 static int sm_ll_init(struct ll_disk *ll, struct dm_transaction_manager *tm) 192 192 { 193 + memset(ll, 0, sizeof(struct ll_disk));194 +193 195 ll->tm = tm; 194 196 195 197 ll->bitmap_info.tm = tm; .. .. @@ -374,10 +376,6 @@ 374 376 */ 375 377 dm_tm_unlock(ll->tm, blk); 376 378 continue; 377 -378 - } else if (r < 0) {379 - dm_tm_unlock(ll->tm, blk);380 - return r;381 379 } 382 380 383 381 dm_tm_unlock(ll->tm, blk);