platform.c (c95baf12f5077419db01313ab61c2aac007d40cd) | platform.c (8a57d6d4ddfa41c49014e20493152c41a38fcbf8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Persistent Storage - platform driver interface parts. 4 * 5 * Copyright (C) 2007-2008 Google, Inc. 6 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com> 7 */ 8 --- 809 unchanged lines hidden (view full) --- 818 * Check if any pstore backends registered earlier but did not 819 * initialize compression because crypto was not ready. If so, 820 * initialize compression now. 821 */ 822 allocate_buf_for_compression(); 823 824 ret = pstore_init_fs(); 825 if (ret) | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Persistent Storage - platform driver interface parts. 4 * 5 * Copyright (C) 2007-2008 Google, Inc. 6 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com> 7 */ 8 --- 809 unchanged lines hidden (view full) --- 818 * Check if any pstore backends registered earlier but did not 819 * initialize compression because crypto was not ready. If so, 820 * initialize compression now. 821 */ 822 allocate_buf_for_compression(); 823 824 ret = pstore_init_fs(); 825 if (ret) |
826 return ret; | 826 free_buf_for_compression(); |
827 | 827 |
828 return 0; | 828 return ret; |
829} 830late_initcall(pstore_init); 831 832static void __exit pstore_exit(void) 833{ 834 pstore_exit_fs(); 835} 836module_exit(pstore_exit) 837 838module_param(compress, charp, 0444); 839MODULE_PARM_DESC(compress, "Pstore compression to use"); 840 841module_param(backend, charp, 0444); 842MODULE_PARM_DESC(backend, "Pstore backend to use"); 843 844MODULE_AUTHOR("Tony Luck <tony.luck@intel.com>"); 845MODULE_LICENSE("GPL"); | 829} 830late_initcall(pstore_init); 831 832static void __exit pstore_exit(void) 833{ 834 pstore_exit_fs(); 835} 836module_exit(pstore_exit) 837 838module_param(compress, charp, 0444); 839MODULE_PARM_DESC(compress, "Pstore compression to use"); 840 841module_param(backend, charp, 0444); 842MODULE_PARM_DESC(backend, "Pstore backend to use"); 843 844MODULE_AUTHOR("Tony Luck <tony.luck@intel.com>"); 845MODULE_LICENSE("GPL"); |