[PATCH 6.18 303/430] serial: sh-sci: Check that the DMA cookie is valid