When a Linux system crashes (usually because of a driver issue), you should make sure at least it restarts.
These are the lines you should add to /etc/sysctl.conf
:
# Reboot time(s) after panic
kernel.panic = 20
# Panic if a hung task was found
kernel.hung_task_panic = 1
# Setup timeout for hung tasks to 30 seconds
kernel.hung_task_timeout_secs = 30