The tmpbuf is not deallocated (if vbuf is NULL): char *tmpbuf = kmalloc(wmax * 2, GFP_ATOMIC); void *vbuf = videobuf_to_vmalloc(&buf->vb); if (!tmpbuf) return; if (!vbuf) return;
Fixed but bug not closed