On Thu, 26 Jan 2012, Joakim Tjernlund wrote: > .. and you should delay the second allocation to when it is needed. After swapping ptrs, test if > tmp_buf is NULL and kmalloc if so. Hmm. You are thinking of a GFP_ATOMIC allocation? Seems best to avoid those? - Paul