[PATCH] ch7006: correctly handling failed allocation