tspdrv: Fix possible null pointer

Change-Id: I9a5c713b4e2c0898af972ef284df02e9ff5fe251