Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ozwpan: Fix bug where kfree is called twice.

Signed-off-by: Rupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: Chris Kelly <ckelly@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rupesh Gujare and committed by
Greg Kroah-Hartman
8176df8e 25958ce3

-2
-2
drivers/staging/ozwpan/ozpd.c
··· 383 383 pd->tx_pool = &f->link; 384 384 pd->tx_pool_count++; 385 385 f = 0; 386 - } else { 387 - kfree(f); 388 386 } 389 387 spin_unlock_bh(&pd->tx_frame_lock); 390 388 if (f)