[openEuler-5.10-LTS 43/99] udmabuf: add back sanity check