Hi, Please backport commit: 59f8f0b54c8f ("md/raid10: improve code of mrdev in raid10_sync_request") to stable trees 5.4.y, 5.10.y, 5.15.y, 6.1.y. This commit fixes Dereference after null check of "&mrdev->nr_pending" in raid10_sync_request(). This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. Amazon Web Services Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B Sitz: Berlin Ust-ID: DE 365 538 597