static void __exit fastbootlog_dump_exit(void) { balong_remove_log_proc_entry("last_fastboot_log"); balong_remove_log_proc_entry("fastboot_log"); if (s_last_fastbootlog_buff) { vfree(s_last_fastbootlog_buff); s_last_fastbootlog_buff = NULL; } s_last_fastbootlog_size = 0; if (s_fastbootlog_buff) { vfree(s_fastbootlog_buff); s_fastbootlog_buff = NULL; } s_fastbootlog_size = 0; return; }
/***************************************************************************** Description : fastbootlog exit destroy the workqueue History 1.Date: 2012/9/13 Author : x00138766 Modification : Created function *****************************************************************************/ static void __exit fastbootlog_dump_exit(void) { balong_remove_log_proc_entry("fastboot"); if (fastboot_log_buff){ vfree(fastboot_log_buff); fastboot_log_buff = NULL; } fastboot_log_size = 0; return; }