CAN message gets corrupt inside a FreeRTOS task

I thought about the priorities and I’m using NVIC_SetPriority

NVIC_SetPriority ( MCAN1_INT0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
NVIC_SetPriority ( MCAN1_INT1_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );

Is this correct? thanks