Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tap: double-free in error path in tap_open()
[ Upstream commit 78e0ea6 ] Double free of skb_array in tap module is causing kernel panic. When tap_set_queue() fails we free skb_array right away by calling skb_array_cleanup(). However, later on skb_array_cleanup() is called again by tap_sock_destruct through sock_put(). This patch fixes that issue. Fixes: 362899b (macvtap: switch to use skb array) Signed-off-by: Girish Moodalbail <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information