Serial driver fixes for 6.16-rc6
Here are two serial driver fixes for 6.16-rc6 that do: - fix for the serial core OF resource leak - pch_uart driver fix for a "incorrect variable" issue Both of these have been in linux-next for over a week with no reported problems. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -----BEGIN PGP SIGNATURE----- iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCaHzH1g8cZ3JlZ0Brcm9h aC5jb20ACgkQMUfUDdst+ykTAACfVcRCjjcynAmZ+Fxk96G08ULJKxQAoJfw7Xm6 3IStZZ/J8l7iOzHs/MfL =LK6C -----END PGP SIGNATURE----- Merge tag 'tty-6.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty Pull serial driver fixes from Greg KH: "Here are two serial driver fixes for 6.16-rc6 that do: - fix for the serial core OF resource leak - pch_uart driver fix for a "incorrect variable" issue Both of these have been in linux-next for over a week with no reported problems" * tag 'tty-6.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: pch_uart: Fix dma_sync_sg_for_device() nents value serial: core: fix OF node leak
This commit is contained in:
commit
673cf893b6
|
|
@ -954,7 +954,7 @@ static unsigned int dma_handle_tx(struct eg20t_port *priv)
|
|||
__func__);
|
||||
return 0;
|
||||
}
|
||||
dma_sync_sg_for_device(port->dev, priv->sg_tx_p, nent, DMA_TO_DEVICE);
|
||||
dma_sync_sg_for_device(port->dev, priv->sg_tx_p, num, DMA_TO_DEVICE);
|
||||
priv->desc_tx = desc;
|
||||
desc->callback = pch_dma_tx_complete;
|
||||
desc->callback_param = priv;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/device.h>
|
||||
#include <linux/idr.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/serial_core.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
|
@ -93,6 +94,7 @@ static void serial_base_ctrl_release(struct device *dev)
|
|||
{
|
||||
struct serial_ctrl_device *ctrl_dev = to_serial_base_ctrl_device(dev);
|
||||
|
||||
of_node_put(dev->of_node);
|
||||
kfree(ctrl_dev);
|
||||
}
|
||||
|
||||
|
|
@ -140,6 +142,7 @@ static void serial_base_port_release(struct device *dev)
|
|||
{
|
||||
struct serial_port_device *port_dev = to_serial_base_port_device(dev);
|
||||
|
||||
of_node_put(dev->of_node);
|
||||
kfree(port_dev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue