[ldv-project] [PATCH] farsync: fix invalid memory accesses in fst_add_one() and fst_init_card()

David Miller davem at davemloft.net
Wed Jul 9 02:20:57 MSK 2014


From: Alexey Khoroshilov <khoroshilov at ispras.ru>
Date: Sat,  5 Jul 2014 03:35:50 +0400

> -                }
> +			card->nports = i;
> +			return (card->nports == 0) ? err : 0;
> +		}

I don't think this is the right thing to do.

This will cause the caller to not free the IRQ or any of the
other resources.




More information about the ldv-project mailing list