The function alloc_ctrl_packet() can fail and return NULL. Incase it fails print an error message and exit. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Reviewed-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| hardware.c | ||
| hardware.h | ||
| main.c | ||
| main.h | ||
| Makefile | ||
| network.c | ||
| network.h | ||
| setup_protocol.h | ||
| tty.c | ||
| tty.h | ||