[PATCH 5.4 287/434] spi: pxa2xx: Add missed security checks