Repository navigation
Commit deb2701
can: kvaser_usb: Avoid double free on URB submission failures
Upon a URB submission failure, the driver calls usb_free_urb()
but then manually frees the URB buffer by itself. Meanwhile
usb_free_urb() has alredy freed out that transfer buffer since
we're the only code path holding a reference to this URB.
Remove two of such invalid manual free().
Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>1 parent b0d4724 commit deb2701
1 file changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
791 | 790 | | |
792 | 791 | | |
793 | 792 | | |
| |||
1615 | 1614 | | |
1616 | 1615 | | |
1617 | 1616 | | |
1618 | | - | |
1619 | | - | |
| 1617 | + | |
1620 | 1618 | | |
1621 | 1619 | | |
1622 | 1620 | | |
| |||
1634 | 1632 | | |
1635 | 1633 | | |
1636 | 1634 | | |
1637 | | - | |
| 1635 | + | |
1638 | 1636 | | |
1639 | 1637 | | |
1640 | 1638 | | |
| |||
1681 | 1679 | | |
1682 | 1680 | | |
1683 | 1681 | | |
| 1682 | + | |
| 1683 | + | |
1684 | 1684 | | |
1685 | | - | |
| 1685 | + | |
1686 | 1686 | | |
1687 | 1687 | | |
1688 | 1688 | | |
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
1722 | | - | |
| 1722 | + | |
1723 | 1723 | | |
1724 | 1724 | | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
| 1725 | + | |
1728 | 1726 | | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
| 1727 | + | |
1732 | 1728 | | |
1733 | 1729 | | |
1734 | 1730 | | |
| |||
0 commit comments