From: Leilei Zhao Date: Fri, 27 Feb 2015 08:07:18 +0000 (+0800) Subject: tty/serial: at91: correct the usage of tasklet X-Git-Tag: omap-for-v4.1/fixes-rc1~74^2~77^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e1257860fd10487795b782f1dbb5b5f2c203474;p=pandora-kernel.git tty/serial: at91: correct the usage of tasklet The tasklet may be scheduled and executed after serial port was shutdown, for example, DMA rx callback will schedule the tasklet while serial port is shutting down, especially serial port is sending and receiving data in a higher baud rate and it's killed by external program. In this case, tasklet_kill can only clear the current scheduling out, so tasklet should be disabled to prevent being executed in later scheduling. Otherwise, the tasklet executed after serial port was shutdown can lead to kernel crash. Signed-off-by: Leilei Zhao Acked-by: Nicolas Ferre Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed