linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	stable@vger.kernel.org,
	Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>,
	"David S. Miller" <davem@davemloft.net>
Subject: [ 045/135] ll_temac: Reset dma descriptors indexes on ndo_open
Date: Fri, 11 Oct 2013 12:38:46 -0700	[thread overview]
Message-ID: <20131011193950.163462884@linuxfoundation.org> (raw)
In-Reply-To: <20131011193945.181603934@linuxfoundation.org>

3.11-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Ricardo Ribalda <ricardo.ribalda@gmail.com>

[ Upstream commit 7167cf0e8cd10287b7912b9ffcccd9616f382922 ]

The dma descriptors indexes are only initialized on the probe function.

If a packet is on the buffer when temac_stop is called, the dma
descriptors indexes can be left on a incorrect state where no other
package can be sent.

So an interface could be left in an usable state after ifdow/ifup.

This patch makes sure that the descriptors indexes are in a proper
status when the device is open.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/net/ethernet/xilinx/ll_temac_main.c |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -297,6 +297,12 @@ static int temac_dma_bd_init(struct net_
 		       lp->rx_bd_p + (sizeof(*lp->rx_bd_v) * (RX_BD_NUM - 1)));
 	lp->dma_out(lp, TX_CURDESC_PTR, lp->tx_bd_p);
 
+	/* Init descriptor indexes */
+	lp->tx_bd_ci = 0;
+	lp->tx_bd_next = 0;
+	lp->tx_bd_tail = 0;
+	lp->rx_bd_ci = 0;
+
 	return 0;
 
 out:



  parent reply	other threads:[~2013-10-11 20:07 UTC|newest]

Thread overview: 138+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11 19:38 [ 000/135] 3.11.5-stable review Greg Kroah-Hartman
2013-10-11 19:38 ` [ 001/135] nfsd4: fix leak of inode reference on delegation failure Greg Kroah-Hartman
2013-10-11 19:38 ` [ 002/135] cpqarray: fix info leak in ida_locked_ioctl() Greg Kroah-Hartman
2013-10-11 19:38 ` [ 003/135] cciss: fix info leak in cciss_ioctl32_passthru() Greg Kroah-Hartman
2013-10-11 19:38 ` [ 004/135] HID: fix data access in implement() Greg Kroah-Hartman
2013-10-11 19:38 ` [ 005/135] HID: fix unused rsize usage Greg Kroah-Hartman
2013-10-11 19:38 ` [ 006/135] sh_eth: fix napi_{en|dis}able() calls racing against interrupts Greg Kroah-Hartman
2013-10-11 19:38 ` [ 007/135] caif: Add missing braces to multiline if in cfctrl_linkup_request Greg Kroah-Hartman
2013-10-11 19:38 ` [ 008/135] tcp: Add missing braces to do_tcp_setsockopt Greg Kroah-Hartman
2013-10-11 19:38 ` [ 009/135] ipv6/exthdrs: accept tlv which includes only padding Greg Kroah-Hartman
2013-10-11 19:38 ` [ 010/135] net: fib: fib6_add: fix potential NULL pointer dereference Greg Kroah-Hartman
2013-10-11 19:38 ` [ 011/135] net: sctp: fix bug in sctp_poll for SOCK_SELECT_ERR_QUEUE Greg Kroah-Hartman
2013-10-11 19:38 ` [ 012/135] net: sctp: fix smatch warning in sctp_send_asconf_del_ip Greg Kroah-Hartman
2013-10-11 19:38 ` [ 013/135] net: fix multiqueue selection Greg Kroah-Hartman
2013-10-11 19:38 ` [ 014/135] net: flow_dissector: fix thoff for IPPROTO_AH Greg Kroah-Hartman
2013-10-11 19:38 ` [ 015/135] net_sched: htb: fix a typo in htb_change_class() Greg Kroah-Hartman
2013-10-11 19:38 ` [ 016/135] r8169: enforce RX_MULTI_EN for the 8168f Greg Kroah-Hartman
2013-10-11 19:38 ` [ 017/135] netpoll: Should handle ETH_P_ARP other than ETH_P_IP in netpoll_neigh_reply Greg Kroah-Hartman
2013-10-11 19:38 ` [ 018/135] netpoll: fix NULL pointer dereference in netpoll_cleanup Greg Kroah-Hartman
2013-10-11 19:38 ` [ 019/135] tuntap: correctly handle error in tun_set_iff() Greg Kroah-Hartman
2013-10-11 19:38 ` [ 020/135] net: sctp: fix ipv6 ipsec encryption bug in sctp_v6_xmit Greg Kroah-Hartman
2013-10-11 19:38 ` [ 021/135] xen-netback: count number required slots for an skb more carefully Greg Kroah-Hartman
2013-10-11 19:38 ` [ 022/135] resubmit bridge: fix message_age_timer calculation Greg Kroah-Hartman
2013-10-11 19:38 ` [ 023/135] bridge: Clamp forward_delay when enabling STP Greg Kroah-Hartman
2013-10-11 19:38 ` [ 024/135] bridge: use br_port_get_rtnl within rtnl lock Greg Kroah-Hartman
2013-10-11 19:38 ` [ 025/135] bridge: fix NULL pointer deref of br_port_get_rcu Greg Kroah-Hartman
2013-10-11 19:38 ` [ 026/135] ip6_tunnels: raddr and laddr are inverted in nl msg Greg Kroah-Hartman
2013-10-11 19:38 ` [ 027/135] net: sctp: rfc4443: do not report ICMP redirects to user space Greg Kroah-Hartman
2013-10-11 19:38 ` [ 028/135] ethernet/arc/arc_emac: Fix huge delays in large file copies Greg Kroah-Hartman
2013-10-11 19:38 ` [ 029/135] vxlan: Avoid creating fdb entry with NULL destination Greg Kroah-Hartman
2013-10-11 19:38 ` [ 030/135] batman-adv: set the TAG flag for the vid passed to BLA Greg Kroah-Hartman
2013-10-11 19:38 ` [ 031/135] net:dccp: do not report ICMP redirects to user space Greg Kroah-Hartman
2013-10-11 19:38 ` [ 032/135] ip: use ip_hdr() in __ip_make_skb() to retrieve IP header Greg Kroah-Hartman
2013-10-11 19:38 ` [ 033/135] ip: generate unique IP identificator if local fragmentation is allowed Greg Kroah-Hartman
2013-10-11 19:38 ` [ 034/135] skge: fix invalid value passed to pci_unmap_sigle Greg Kroah-Hartman
2013-10-11 19:38 ` [ 035/135] ipv6: udp packets following an UFO enqueued packet need also be handled by UFO Greg Kroah-Hartman
2013-10-11 19:38 ` [ 036/135] via-rhine: fix VLAN priority field (PCP, IEEE 802.1p) Greg Kroah-Hartman
2013-10-11 19:38 ` [ 037/135] IPv6 NAT: Do not drop DNATed 6to4/6rd packets Greg Kroah-Hartman
2013-10-11 19:38 ` [ 038/135] net: net_secret should not depend on TCP Greg Kroah-Hartman
2013-10-11 19:38 ` [ 039/135] ip_tunnel: Do not use stale inner_iph pointer Greg Kroah-Hartman
2013-10-11 19:38 ` [ 040/135] dm9601: fix IFF_ALLMULTI handling Greg Kroah-Hartman
2013-10-11 19:38 ` [ 041/135] bonding: Fix broken promiscuity reference counting issue Greg Kroah-Hartman
2013-10-11 19:38 ` [ 042/135] ipv6: gre: correct calculation of max_headroom Greg Kroah-Hartman
2013-10-11 19:38 ` [ 043/135] ipv4 igmp: use in_dev_put in timer handlers instead of __in_dev_put Greg Kroah-Hartman
2013-10-11 19:38 ` [ 044/135] ipv6 mcast: use in6_dev_put in timer handlers instead of __in6_dev_put Greg Kroah-Hartman
2013-10-11 19:38 ` Greg Kroah-Hartman [this message]
2013-10-11 19:38 ` [ 046/135] ip_tunnel: Fix a memory corruption in ip_tunnel_xmit Greg Kroah-Hartman
2013-10-11 19:38 ` [ 047/135] ip_tunnel_core: Change __skb_push back to skb_push Greg Kroah-Hartman
2013-10-11 19:38 ` [ 048/135] sit: allow to use rtnl ops on fb tunnel Greg Kroah-Hartman
2013-10-11 19:38 ` [ 049/135] ip6tnl: " Greg Kroah-Hartman
2013-10-11 19:38 ` [ 050/135] avr32: fix clockevents kernel warning Greg Kroah-Hartman
2013-10-11 19:38 ` [ 051/135] regulator: ti-abb: Fix bias voltage glitch in transition to bypass mode Greg Kroah-Hartman
2013-10-11 19:38 ` [ 052/135] fs/binfmt_elf.c: prevent a coredump with a large vm_map_count from Oopsing Greg Kroah-Hartman
2013-10-11 19:38 ` [ 053/135] gpio/omap: maintain GPIO and IRQ usage separately Greg Kroah-Hartman
2013-10-11 19:38 ` [ 054/135] gpio/omap: auto-setup a GPIO when used as an IRQ Greg Kroah-Hartman
2013-10-11 19:38 ` [ 055/135] ASoC: max98095: a couple array underflows Greg Kroah-Hartman
2013-10-11 19:38 ` [ 056/135] ASoC: 88pm860x: array overflow in snd_soc_put_volsw_2r_st() Greg Kroah-Hartman
2013-10-11 19:38 ` [ 057/135] ASoC: ab8500-codec: info leak in anc_status_control_put() Greg Kroah-Hartman
2013-10-11 19:38 ` [ 058/135] ARM: kvm: rename cpu_reset to avoid name clash Greg Kroah-Hartman
2013-10-11 19:39 ` [ 059/135] ARM: mach-integrator: Add stub for pci_v3_early_init() for !CONFIG_PCI Greg Kroah-Hartman
2013-10-11 19:39 ` [ 060/135] iommu/arm-smmu: fix a signedness bug Greg Kroah-Hartman
2013-10-11 19:39 ` [ 061/135] iommu/arm-smmu: fix iommu_present() test in init Greg Kroah-Hartman
2013-10-11 19:39 ` [ 062/135] iommu/arm-smmu: dont enable SMMU device until probing has completed Greg Kroah-Hartman
2013-10-11 19:39 ` [ 063/135] powerpc/iommu: Use GFP_KERNEL instead of GFP_ATOMIC in iommu_init_table() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 064/135] powerpc/perf: Fix handling of FAB events Greg Kroah-Hartman
2013-10-11 19:39 ` [ 065/135] powerpc/tm: Switch out userspace PPR and DSCR sooner Greg Kroah-Hartman
2013-10-11 19:39 ` [ 066/135] powerpc/tm: Turn interrupts hard off in tm_reclaim() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 067/135] powerpc/vio: Fix modalias_show return values Greg Kroah-Hartman
2013-10-11 19:39 ` [ 068/135] powerpc: Fix parameter clobber in csum_partial_copy_generic() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 069/135] powerpc: Fix memory hotplug with sparse vmemmap Greg Kroah-Hartman
2013-10-11 19:39 ` [ 070/135] powerpc/sysfs: Disable writing to PURR in guest mode Greg Kroah-Hartman
2013-10-11 19:39 ` [ 071/135] powerpc: Restore registers on error exit from csum_partial_copy_generic() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 072/135] fuse: wait for writeback in fuse_file_fallocate() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 073/135] fuse: fix fallocate vs. ftruncate race Greg Kroah-Hartman
2013-10-11 19:39 ` [ 074/135] brcmfmac: obtain platform data upon module initialization Greg Kroah-Hartman
2013-10-11 19:39 ` [ 075/135] Bluetooth: Fix security level for peripheral role Greg Kroah-Hartman
2013-10-11 19:39 ` [ 076/135] Bluetooth: Fix encryption key size " Greg Kroah-Hartman
2013-10-11 19:39 ` [ 077/135] Bluetooth: Add a new PID/VID 0cf3/e005 for AR3012 Greg Kroah-Hartman
2013-10-11 19:39 ` [ 078/135] Bluetooth: Add support for BCM20702A0 [0b05, 17cb] Greg Kroah-Hartman
2013-10-11 19:39 ` [ 079/135] Bluetooth: Introduce a new HCI_RFKILLED flag Greg Kroah-Hartman
2013-10-11 19:39 ` [ 080/135] Bluetooth: Fix rfkill functionality during the HCI setup stage Greg Kroah-Hartman
2013-10-11 19:39 ` [ 081/135] nilfs2: fix issue with race condition of competition between segments for dirty blocks Greg Kroah-Hartman
2013-10-11 19:39 ` [ 082/135] ipc/sem.c: fix race in sem_lock() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 083/135] ipc,msg: prevent race with rmid in msgsnd,msgrcv Greg Kroah-Hartman
2013-10-11 19:39 ` [ 084/135] ipc: fix race with LSMs Greg Kroah-Hartman
2013-10-11 19:39 ` [ 085/135] sparc64: Fix buggy strlcpy() conversion in ldom_reboot() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 086/135] sparc: fix ldom_reboot buffer overflow harder Greg Kroah-Hartman
2013-10-11 19:39 ` [ 087/135] sparc64: Remove RWSEM export leftovers Greg Kroah-Hartman
2013-10-11 19:39 ` [ 088/135] sparc64: Fix ITLB handler of null page Greg Kroah-Hartman
2013-10-11 19:39 ` [ 089/135] esp_scsi: Fix tag state corruption when autosensing Greg Kroah-Hartman
2013-10-11 19:39 ` [ 090/135] sparc64: Fix off by one in trampoline TLB mapping installation loop Greg Kroah-Hartman
2013-10-11 19:39 ` [ 091/135] sparc64: Fix not SRAed %o5 in 32-bit traced syscall Greg Kroah-Hartman
2013-10-11 19:39 ` [ 092/135] sparc32: Fix exit flag passed from traced sys_sigreturn Greg Kroah-Hartman
2013-10-11 19:39 ` [ 093/135] mm: Fix generic hugetlb pte check return type Greg Kroah-Hartman
2013-10-11 19:39 ` [ 094/135] mm/bounce.c: fix a regression where MS_SNAP_STABLE (stable pages snapshotting) was ignored Greg Kroah-Hartman
2013-10-11 19:39 ` [ 095/135] kernel/kmod.c: check for NULL in call_usermodehelper_exec() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 096/135] staging: comedi: ni_65xx: (bug fix) confine insn_bits to one subdevice Greg Kroah-Hartman
2013-10-11 19:39 ` [ 097/135] NFSv4.1: nfs4_fl_prepare_ds - fix bugs when the connect attempt fails Greg Kroah-Hartman
2013-10-11 19:39 ` [ 098/135] mwifiex: fix NULL pointer dereference in usb suspend handler Greg Kroah-Hartman
2013-10-11 19:39 ` [ 099/135] mwifiex: fix hang issue for USB chipsets Greg Kroah-Hartman
2013-10-11 19:39 ` [ 100/135] mwifiex: fix PCIe hs_cfg cancel cmd timeout Greg Kroah-Hartman
2013-10-11 19:39 ` [ 101/135] usb: chipidea: add Intel Clovertrail pci id Greg Kroah-Hartman
2013-10-11 19:39 ` [ 102/135] USB: serial: option: Ignore card reader interface on Huawei E1750 Greg Kroah-Hartman
2013-10-11 19:39 ` [ 103/135] xen/hvc: allow xenboot console to be used again Greg Kroah-Hartman
2013-10-11 19:39 ` [ 104/135] ib_srpt: Destroy cm_id before destroying QP Greg Kroah-Hartman
2013-10-11 19:39 ` [ 105/135] ib_srpt: always set response for task management Greg Kroah-Hartman
2013-10-11 19:39 ` [ 106/135] rtlwifi: Align private space in rtl_priv struct Greg Kroah-Hartman
2013-10-11 19:39 ` [ 107/135] p54usb: add USB ID for Corega WLUSB2GTST USB adapter Greg Kroah-Hartman
2013-10-11 19:39 ` [ 108/135] mm: avoid reinserting isolated balloon pages into LRU lists Greg Kroah-Hartman
2013-10-11 19:39 ` [ 109/135] iscsi-target: Only perform wait_for_tasks when performing shutdown Greg Kroah-Hartman
2013-10-11 19:39 ` [ 110/135] net: Update the sysctl permissions handler to test effective uid/gid Greg Kroah-Hartman
2013-10-11 19:39 ` [ 111/135] irq: Force hardirq exits softirq processing on its own stack Greg Kroah-Hartman
2013-10-11 19:39 ` [ 112/135] drm/radeon: fix hdmi callbacks for rv6xx (incorrectly added to r520) Greg Kroah-Hartman
2013-10-11 19:39 ` [ 113/135] dmaengine: imx-dma: fix lockdep issue between irqhandler and tasklet Greg Kroah-Hartman
2013-10-11 19:39 ` [ 114/135] dmaengine: imx-dma: fix callback path in tasklet Greg Kroah-Hartman
2013-10-11 19:39 ` [ 115/135] dmaengine: imx-dma: fix slow path issue in prep_dma_cyclic Greg Kroah-Hartman
2013-10-11 19:39 ` [ 116/135] ACPI / IPMI: Fix atomic context requirement of ipmi_msg_handler() Greg Kroah-Hartman
2013-10-11 19:39 ` [ 117/135] xfs: fix node forward in xfs_node_toosmall Greg Kroah-Hartman
2013-10-11 19:39 ` [ 118/135] drm/nouveau/bios/init: stub opcode 0xaa Greg Kroah-Hartman
2013-10-11 19:40 ` [ 119/135] ARM: tegra: unify Tegras Kconfig a bit more Greg Kroah-Hartman
2013-10-11 19:40 ` [ 120/135] ALSA: hda - Fix GPIO for Acer Aspire 3830TG Greg Kroah-Hartman
2013-10-11 19:40 ` [ 121/135] ARM: multi_v7_defconfig: enable ARM_ATAG_DTB_COMPAT Greg Kroah-Hartman
2013-10-11 19:40 ` [ 122/135] HID: wiimote: fix FF deadlock Greg Kroah-Hartman
2013-10-11 19:40 ` [ 123/135] mmc: fix null pointer use in mmc_blk_remove_req Greg Kroah-Hartman
2013-10-11 19:40 ` [ 124/135] tile: use a more conservative __my_cpu_offset in CONFIG_PREEMPT Greg Kroah-Hartman
2013-10-11 19:40 ` [ 125/135] s390: fix system call restart after inferior call Greg Kroah-Hartman
2013-10-11 19:40 ` [ 126/135] Btrfs: reset ret in record_one_backref Greg Kroah-Hartman
2013-10-11 19:40 ` [ 127/135] Btrfs: change how we queue blocks for backref checking Greg Kroah-Hartman
2013-10-11 19:40 ` [ 128/135] Btrfs: skip subvol entries when checking if weve created a dir already Greg Kroah-Hartman
2013-10-11 19:40 ` [ 129/135] Btrfs: remove ourselves from the cluster list under lock Greg Kroah-Hartman
2013-10-11 19:40 ` [ 130/135] HID: roccat: add support for KonePureOptical v2 Greg Kroah-Hartman
2013-10-11 19:40 ` [ 131/135] HID: add Holtek USB ID 04d9:a081 SHARKOON DarkGlider Greg Kroah-Hartman
2013-10-11 19:40 ` [ 132/135] HID: uhid: add devname module alias Greg Kroah-Hartman
2013-10-11 19:40 ` [ 133/135] HID: uhid: allocate static minor Greg Kroah-Hartman
2013-10-11 19:40 ` [ 134/135] net: qmi_wwan: add new Qualcomm devices Greg Kroah-Hartman
2013-10-11 19:40 ` [ 135/135] bcache: Fix a null ptr deref regression Greg Kroah-Hartman
2013-10-11 23:58 ` [ 000/135] 3.11.5-stable review Guenter Roeck
2013-10-12  0:01   ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131011193950.163462884@linuxfoundation.org \
    --to=gregkh@linuxfoundation.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ricardo.ribalda@gmail.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).