diag: Update mask pointers after reallocation

Currently, mask pointers are not updated in
case peripherals are supporting more mask
tables. The patch updates the mask pointers
properly.

Bug: 111289931
Change-Id: I1360c722076fca0215e0ccd28247c4741a1ebd88
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
(cherry picked from commit 82c35d81aba22bc4251d8c08bf0fad49512e94a1)
2 files changed