diff options
author | Denys Dmytriyenko <denys@ti.com> | 2012-06-11 20:44:56 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2012-06-11 20:44:56 -0400 |
commit | 88867c1d96684925027a0ecc9e25c6ea70040cc6 (patch) | |
tree | e1ad8651aa7663850f6dc1108b278f56a2b92a91 /extras/recipes-kernel/linux/linux-omap/linus/0041-tg3-fix-return-value-check-in-tg3_read_vpd.patch | |
parent | a1e2573369c6714956af561523ba274aa9c185f7 (diff) | |
download | meta-ti-split.tar.gz |
extras: move things to extrassplit
Move non-essential, outdated, best-effort pieces, as well, as those requiring
extra non-standard dependencies besides oe-core.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/linus/0041-tg3-fix-return-value-check-in-tg3_read_vpd.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap/linus/0041-tg3-fix-return-value-check-in-tg3_read_vpd.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/linus/0041-tg3-fix-return-value-check-in-tg3_read_vpd.patch b/extras/recipes-kernel/linux/linux-omap/linus/0041-tg3-fix-return-value-check-in-tg3_read_vpd.patch new file mode 100644 index 00000000..c77fb857 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap/linus/0041-tg3-fix-return-value-check-in-tg3_read_vpd.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 8742365f4de2afdd0168366b49a3118e67354a21 Mon Sep 17 00:00:00 2001 | ||
2 | From: David Sterba <dsterba@suse.cz> | ||
3 | Date: Wed, 29 Dec 2010 03:40:31 +0000 | ||
4 | Subject: [PATCH 41/65] tg3: fix return value check in tg3_read_vpd() | ||
5 | |||
6 | Besides -ETIMEDOUT and -EINTR, pci_read_vpd may return other error | ||
7 | values like -ENODEV or -EINVAL which are ignored due to the buggy | ||
8 | check, but the data are not read from VPD anyway and this is checked | ||
9 | subsequently with at most 3 needless loop iterations. This does not | ||
10 | show up as a runtime bug. | ||
11 | |||
12 | CC: Matt Carlson <mcarlson@broadcom.com> | ||
13 | CC: Michael Chan <mchan@broadcom.com> | ||
14 | Signed-off-by: David Sterba <dsterba@suse.cz> | ||
15 | Signed-off-by: David S. Miller <davem@davemloft.net> | ||
16 | --- | ||
17 | drivers/net/tg3.c | 2 +- | ||
18 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
19 | |||
20 | diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c | ||
21 | index 30ccbb6..6f97b7b 100644 | ||
22 | --- a/drivers/net/tg3.c | ||
23 | +++ b/drivers/net/tg3.c | ||
24 | @@ -12658,7 +12658,7 @@ static void __devinit tg3_read_vpd(struct tg3 *tp) | ||
25 | cnt = pci_read_vpd(tp->pdev, pos, | ||
26 | TG3_NVM_VPD_LEN - pos, | ||
27 | &vpd_data[pos]); | ||
28 | - if (cnt == -ETIMEDOUT || -EINTR) | ||
29 | + if (cnt == -ETIMEDOUT || cnt == -EINTR) | ||
30 | cnt = 0; | ||
31 | else if (cnt < 0) | ||
32 | goto out_not_found; | ||
33 | -- | ||
34 | 1.6.6.1 | ||
35 | |||