Commit 4944be2
virtio_net: Allocate rss_hdr with devres
virtnet_probe() lacks the code to free rss_hdr in its error path.
Allocate rss_hdr with devres so that it will be automatically freed.
Fixes: 86a48a0 ("virtio_net: Support dynamic rss indirection table size")
Signed-off-by: Akihiko Odaki <[email protected]>
Acked-by: Jason Wang <[email protected]>
Reviewed-by: Xuan Zhuo <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Tested-by: Lei Yang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent ed3100e commit 4944be2
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3642 | 3642 | | |
3643 | 3643 | | |
3644 | 3644 | | |
3645 | | - | |
| 3645 | + | |
3646 | 3646 | | |
3647 | 3647 | | |
3648 | 3648 | | |
| |||
3653 | 3653 | | |
3654 | 3654 | | |
3655 | 3655 | | |
3656 | | - | |
| 3656 | + | |
3657 | 3657 | | |
3658 | 3658 | | |
3659 | 3659 | | |
3660 | 3660 | | |
3661 | 3661 | | |
3662 | 3662 | | |
3663 | 3663 | | |
3664 | | - | |
| 3664 | + | |
3665 | 3665 | | |
3666 | 3666 | | |
3667 | 3667 | | |
| |||
6768 | 6768 | | |
6769 | 6769 | | |
6770 | 6770 | | |
6771 | | - | |
| 6771 | + | |
6772 | 6772 | | |
6773 | 6773 | | |
6774 | 6774 | | |
| |||
7051 | 7051 | | |
7052 | 7052 | | |
7053 | 7053 | | |
7054 | | - | |
7055 | | - | |
7056 | 7054 | | |
7057 | 7055 | | |
7058 | 7056 | | |
| |||
0 commit comments