[PATCH 5.10 040/270] dm: fix copying after src array boundaries