[PATCH 5.10 284/355] drivers/rapidio/rio_cm.c: prevent possible heap overwrite