soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop devm_kasprintf() can return a NULL pointer on failure,but this lpc_snoop->chan[channel].miscdev.name returned value in aspeed_lpc_enable_snoop is not checked. Add NULL check in aspeed_lpc_enable_snoop, to handle kernel NULL pointer dereference error.
This missing NULL check is only the tip of the iceberg, the aspeed-lpc-snoop driver driver has many other issues in error code paths (resource leak) and device removal path (race condition). I reported my findings to the subsystem maintainers.