spi: dw: fix kernel crash due to NULL pointer dereference