On Thu, Jan 31, 2019 at 06:32:07AM +0000, Ramin Farajpour Cami wrote: > Hi Eric, > > I going to for avoid double free of resource identifiers we should set > variables initialized in "tmp/key" to NULL if an error occurred int the > "esp_init_authenc()" and "esp_output_tail()" attempts to free the memory > again.my means like this patch c7055fd15ff46d92eb0dd1c16a4fe010d58224c8 > <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c7055fd15ff46d92eb0dd1c16a4fe010d58224c8>
There is a big difference between the above-noted patch and your patch. You really have to understand the code you are trying to change.