1 |
commit: 684cd4a547d8a64a0aeaab7bbef16bf5be11f071 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 4 18:26:01 2019 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 4 18:26:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=684cd4a5 |
7 |
|
8 |
Linux patch 4.9.173 |
9 |
|
10 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
11 |
|
12 |
0000_README | 4 + |
13 |
1172_linux-4.9.173.patch | 881 +++++++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 885 insertions(+) |
15 |
|
16 |
diff --git a/0000_README b/0000_README |
17 |
index ab73916..b47b2c4 100644 |
18 |
--- a/0000_README |
19 |
+++ b/0000_README |
20 |
@@ -731,6 +731,10 @@ Patch: 1171_linux-4.9.172.patch |
21 |
From: http://www.kernel.org |
22 |
Desc: Linux 4.9.172 |
23 |
|
24 |
+Patch: 1172_linux-4.9.173.patch |
25 |
+From: http://www.kernel.org |
26 |
+Desc: Linux 4.9.173 |
27 |
+ |
28 |
Patch: 1500_XATTR_USER_PREFIX.patch |
29 |
From: https://bugs.gentoo.org/show_bug.cgi?id=470644 |
30 |
Desc: Support for namespace user.pax.* on tmpfs. |
31 |
|
32 |
diff --git a/1172_linux-4.9.173.patch b/1172_linux-4.9.173.patch |
33 |
new file mode 100644 |
34 |
index 0000000..14ca386 |
35 |
--- /dev/null |
36 |
+++ b/1172_linux-4.9.173.patch |
37 |
@@ -0,0 +1,881 @@ |
38 |
+diff --git a/Makefile b/Makefile |
39 |
+index 75cba5fbdb46..a4e35453f9e4 100644 |
40 |
+--- a/Makefile |
41 |
++++ b/Makefile |
42 |
+@@ -1,6 +1,6 @@ |
43 |
+ VERSION = 4 |
44 |
+ PATCHLEVEL = 9 |
45 |
+-SUBLEVEL = 172 |
46 |
++SUBLEVEL = 173 |
47 |
+ EXTRAVERSION = |
48 |
+ NAME = Roaring Lionus |
49 |
+ |
50 |
+diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts |
51 |
+index 84df85ea6296..7efde03daadd 100644 |
52 |
+--- a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts |
53 |
++++ b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts |
54 |
+@@ -26,5 +26,5 @@ |
55 |
+ }; |
56 |
+ |
57 |
+ &hdmi { |
58 |
+- hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; |
59 |
++ hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>; |
60 |
+ }; |
61 |
+diff --git a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi |
62 |
+index e0280cac2484..fed72a5f3ffa 100644 |
63 |
+--- a/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi |
64 |
++++ b/arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi |
65 |
+@@ -90,6 +90,7 @@ |
66 |
+ pinctrl-names = "default"; |
67 |
+ pinctrl-0 = <&pinctrl_enet>; |
68 |
+ phy-mode = "rgmii"; |
69 |
++ phy-reset-duration = <10>; /* in msecs */ |
70 |
+ phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; |
71 |
+ phy-supply = <&vdd_eth_io_reg>; |
72 |
+ status = "disabled"; |
73 |
+diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h |
74 |
+index 8d665f1b29f8..f0fe566a9910 100644 |
75 |
+--- a/arch/s390/include/asm/elf.h |
76 |
++++ b/arch/s390/include/asm/elf.h |
77 |
+@@ -215,11 +215,14 @@ do { \ |
78 |
+ |
79 |
+ /* |
80 |
+ * Cache aliasing on the latest machines calls for a mapping granularity |
81 |
+- * of 512KB. For 64-bit processes use a 512KB alignment and a randomization |
82 |
+- * of up to 1GB. For 31-bit processes the virtual address space is limited, |
83 |
+- * use no alignment and limit the randomization to 8MB. |
84 |
++ * of 512KB for the anonymous mapping base. For 64-bit processes use a |
85 |
++ * 512KB alignment and a randomization of up to 1GB. For 31-bit processes |
86 |
++ * the virtual address space is limited, use no alignment and limit the |
87 |
++ * randomization to 8MB. |
88 |
++ * For the additional randomization of the program break use 32MB for |
89 |
++ * 64-bit and 8MB for 31-bit. |
90 |
+ */ |
91 |
+-#define BRK_RND_MASK (is_compat_task() ? 0x7ffUL : 0x3ffffUL) |
92 |
++#define BRK_RND_MASK (is_compat_task() ? 0x7ffUL : 0x1fffUL) |
93 |
+ #define MMAP_RND_MASK (is_compat_task() ? 0x7ffUL : 0x3ff80UL) |
94 |
+ #define MMAP_ALIGN_MASK (is_compat_task() ? 0 : 0x7fUL) |
95 |
+ #define STACK_RND_MASK MMAP_RND_MASK |
96 |
+diff --git a/drivers/ata/libata-zpodd.c b/drivers/ata/libata-zpodd.c |
97 |
+index 0ad96c647541..7017a81d53cf 100644 |
98 |
+--- a/drivers/ata/libata-zpodd.c |
99 |
++++ b/drivers/ata/libata-zpodd.c |
100 |
+@@ -51,38 +51,52 @@ static int eject_tray(struct ata_device *dev) |
101 |
+ /* Per the spec, only slot type and drawer type ODD can be supported */ |
102 |
+ static enum odd_mech_type zpodd_get_mech_type(struct ata_device *dev) |
103 |
+ { |
104 |
+- char buf[16]; |
105 |
++ char *buf; |
106 |
+ unsigned int ret; |
107 |
+- struct rm_feature_desc *desc = (void *)(buf + 8); |
108 |
++ struct rm_feature_desc *desc; |
109 |
+ struct ata_taskfile tf; |
110 |
+ static const char cdb[] = { GPCMD_GET_CONFIGURATION, |
111 |
+ 2, /* only 1 feature descriptor requested */ |
112 |
+ 0, 3, /* 3, removable medium feature */ |
113 |
+ 0, 0, 0,/* reserved */ |
114 |
+- 0, sizeof(buf), |
115 |
++ 0, 16, |
116 |
+ 0, 0, 0, |
117 |
+ }; |
118 |
+ |
119 |
++ buf = kzalloc(16, GFP_KERNEL); |
120 |
++ if (!buf) |
121 |
++ return ODD_MECH_TYPE_UNSUPPORTED; |
122 |
++ desc = (void *)(buf + 8); |
123 |
++ |
124 |
+ ata_tf_init(dev, &tf); |
125 |
+ tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; |
126 |
+ tf.command = ATA_CMD_PACKET; |
127 |
+ tf.protocol = ATAPI_PROT_PIO; |
128 |
+- tf.lbam = sizeof(buf); |
129 |
++ tf.lbam = 16; |
130 |
+ |
131 |
+ ret = ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE, |
132 |
+- buf, sizeof(buf), 0); |
133 |
+- if (ret) |
134 |
++ buf, 16, 0); |
135 |
++ if (ret) { |
136 |
++ kfree(buf); |
137 |
+ return ODD_MECH_TYPE_UNSUPPORTED; |
138 |
++ } |
139 |
+ |
140 |
+- if (be16_to_cpu(desc->feature_code) != 3) |
141 |
++ if (be16_to_cpu(desc->feature_code) != 3) { |
142 |
++ kfree(buf); |
143 |
+ return ODD_MECH_TYPE_UNSUPPORTED; |
144 |
++ } |
145 |
+ |
146 |
+- if (desc->mech_type == 0 && desc->load == 0 && desc->eject == 1) |
147 |
++ if (desc->mech_type == 0 && desc->load == 0 && desc->eject == 1) { |
148 |
++ kfree(buf); |
149 |
+ return ODD_MECH_TYPE_SLOT; |
150 |
+- else if (desc->mech_type == 1 && desc->load == 0 && desc->eject == 1) |
151 |
++ } else if (desc->mech_type == 1 && desc->load == 0 && |
152 |
++ desc->eject == 1) { |
153 |
++ kfree(buf); |
154 |
+ return ODD_MECH_TYPE_DRAWER; |
155 |
+- else |
156 |
++ } else { |
157 |
++ kfree(buf); |
158 |
+ return ODD_MECH_TYPE_UNSUPPORTED; |
159 |
++ } |
160 |
+ } |
161 |
+ |
162 |
+ /* Test if ODD is zero power ready by sense code */ |
163 |
+diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c |
164 |
+index aac84329c759..b863386be911 100644 |
165 |
+--- a/drivers/gpio/gpiolib-of.c |
166 |
++++ b/drivers/gpio/gpiolib-of.c |
167 |
+@@ -531,7 +531,13 @@ int of_gpiochip_add(struct gpio_chip *chip) |
168 |
+ |
169 |
+ of_node_get(chip->of_node); |
170 |
+ |
171 |
+- return of_gpiochip_scan_gpios(chip); |
172 |
++ status = of_gpiochip_scan_gpios(chip); |
173 |
++ if (status) { |
174 |
++ of_node_put(chip->of_node); |
175 |
++ gpiochip_remove_pin_ranges(chip); |
176 |
++ } |
177 |
++ |
178 |
++ return status; |
179 |
+ } |
180 |
+ |
181 |
+ void of_gpiochip_remove(struct gpio_chip *chip) |
182 |
+diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c |
183 |
+index 09a7cffbc46f..896b38f6f9c0 100644 |
184 |
+--- a/drivers/leds/leds-pca9532.c |
185 |
++++ b/drivers/leds/leds-pca9532.c |
186 |
+@@ -488,6 +488,7 @@ static int pca9532_probe(struct i2c_client *client, |
187 |
+ const struct i2c_device_id *id) |
188 |
+ { |
189 |
+ int devid; |
190 |
++ const struct of_device_id *of_id; |
191 |
+ struct pca9532_data *data = i2c_get_clientdata(client); |
192 |
+ struct pca9532_platform_data *pca9532_pdata = |
193 |
+ dev_get_platdata(&client->dev); |
194 |
+@@ -503,8 +504,11 @@ static int pca9532_probe(struct i2c_client *client, |
195 |
+ dev_err(&client->dev, "no platform data\n"); |
196 |
+ return -EINVAL; |
197 |
+ } |
198 |
+- devid = (int)(uintptr_t)of_match_device( |
199 |
+- of_pca9532_leds_match, &client->dev)->data; |
200 |
++ of_id = of_match_device(of_pca9532_leds_match, |
201 |
++ &client->dev); |
202 |
++ if (unlikely(!of_id)) |
203 |
++ return -EINVAL; |
204 |
++ devid = (int)(uintptr_t) of_id->data; |
205 |
+ } else { |
206 |
+ devid = id->driver_data; |
207 |
+ } |
208 |
+diff --git a/drivers/media/platform/vivid/vivid-vid-common.c b/drivers/media/platform/vivid/vivid-vid-common.c |
209 |
+index f9a810e3f521..5f052189a6c4 100644 |
210 |
+--- a/drivers/media/platform/vivid/vivid-vid-common.c |
211 |
++++ b/drivers/media/platform/vivid/vivid-vid-common.c |
212 |
+@@ -841,6 +841,7 @@ int vidioc_g_edid(struct file *file, void *_fh, |
213 |
+ if (edid->start_block + edid->blocks > dev->edid_blocks) |
214 |
+ edid->blocks = dev->edid_blocks - edid->start_block; |
215 |
+ memcpy(edid->edid, dev->edid, edid->blocks * 128); |
216 |
+- cec_set_edid_phys_addr(edid->edid, edid->blocks * 128, adap->phys_addr); |
217 |
++ if (adap) |
218 |
++ cec_set_edid_phys_addr(edid->edid, edid->blocks * 128, adap->phys_addr); |
219 |
+ return 0; |
220 |
+ } |
221 |
+diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c |
222 |
+index bd719e25dd76..2dd17e01e3a7 100644 |
223 |
+--- a/drivers/net/ethernet/ibm/ehea/ehea_main.c |
224 |
++++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c |
225 |
+@@ -3184,6 +3184,7 @@ static ssize_t ehea_probe_port(struct device *dev, |
226 |
+ |
227 |
+ if (ehea_add_adapter_mr(adapter)) { |
228 |
+ pr_err("creating MR failed\n"); |
229 |
++ of_node_put(eth_dn); |
230 |
+ return -EIO; |
231 |
+ } |
232 |
+ |
233 |
+diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c |
234 |
+index 1edc973df4c4..7377dca6eb57 100644 |
235 |
+--- a/drivers/net/ethernet/micrel/ks8851.c |
236 |
++++ b/drivers/net/ethernet/micrel/ks8851.c |
237 |
+@@ -547,9 +547,8 @@ static void ks8851_rx_pkts(struct ks8851_net *ks) |
238 |
+ /* set dma read address */ |
239 |
+ ks8851_wrreg16(ks, KS_RXFDPR, RXFDPR_RXFPAI | 0x00); |
240 |
+ |
241 |
+- /* start the packet dma process, and set auto-dequeue rx */ |
242 |
+- ks8851_wrreg16(ks, KS_RXQCR, |
243 |
+- ks->rc_rxqcr | RXQCR_SDA | RXQCR_ADRFE); |
244 |
++ /* start DMA access */ |
245 |
++ ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_SDA); |
246 |
+ |
247 |
+ if (rxlen > 4) { |
248 |
+ unsigned int rxalign; |
249 |
+@@ -580,7 +579,8 @@ static void ks8851_rx_pkts(struct ks8851_net *ks) |
250 |
+ } |
251 |
+ } |
252 |
+ |
253 |
+- ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr); |
254 |
++ /* end DMA access and dequeue packet */ |
255 |
++ ks8851_wrreg16(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_RRXEF); |
256 |
+ } |
257 |
+ } |
258 |
+ |
259 |
+@@ -797,6 +797,15 @@ static void ks8851_tx_work(struct work_struct *work) |
260 |
+ static int ks8851_net_open(struct net_device *dev) |
261 |
+ { |
262 |
+ struct ks8851_net *ks = netdev_priv(dev); |
263 |
++ int ret; |
264 |
++ |
265 |
++ ret = request_threaded_irq(dev->irq, NULL, ks8851_irq, |
266 |
++ IRQF_TRIGGER_LOW | IRQF_ONESHOT, |
267 |
++ dev->name, ks); |
268 |
++ if (ret < 0) { |
269 |
++ netdev_err(dev, "failed to get irq\n"); |
270 |
++ return ret; |
271 |
++ } |
272 |
+ |
273 |
+ /* lock the card, even if we may not actually be doing anything |
274 |
+ * else at the moment */ |
275 |
+@@ -861,6 +870,7 @@ static int ks8851_net_open(struct net_device *dev) |
276 |
+ netif_dbg(ks, ifup, ks->netdev, "network device up\n"); |
277 |
+ |
278 |
+ mutex_unlock(&ks->lock); |
279 |
++ mii_check_link(&ks->mii); |
280 |
+ return 0; |
281 |
+ } |
282 |
+ |
283 |
+@@ -911,6 +921,8 @@ static int ks8851_net_stop(struct net_device *dev) |
284 |
+ dev_kfree_skb(txb); |
285 |
+ } |
286 |
+ |
287 |
++ free_irq(dev->irq, ks); |
288 |
++ |
289 |
+ return 0; |
290 |
+ } |
291 |
+ |
292 |
+@@ -1516,6 +1528,7 @@ static int ks8851_probe(struct spi_device *spi) |
293 |
+ |
294 |
+ spi_set_drvdata(spi, ks); |
295 |
+ |
296 |
++ netif_carrier_off(ks->netdev); |
297 |
+ ndev->if_port = IF_PORT_100BASET; |
298 |
+ ndev->netdev_ops = &ks8851_netdev_ops; |
299 |
+ ndev->irq = spi->irq; |
300 |
+@@ -1542,14 +1555,6 @@ static int ks8851_probe(struct spi_device *spi) |
301 |
+ ks8851_read_selftest(ks); |
302 |
+ ks8851_init_mac(ks); |
303 |
+ |
304 |
+- ret = request_threaded_irq(spi->irq, NULL, ks8851_irq, |
305 |
+- IRQF_TRIGGER_LOW | IRQF_ONESHOT, |
306 |
+- ndev->name, ks); |
307 |
+- if (ret < 0) { |
308 |
+- dev_err(&spi->dev, "failed to get irq\n"); |
309 |
+- goto err_irq; |
310 |
+- } |
311 |
+- |
312 |
+ ret = register_netdev(ndev); |
313 |
+ if (ret) { |
314 |
+ dev_err(&spi->dev, "failed to register network device\n"); |
315 |
+@@ -1562,14 +1567,10 @@ static int ks8851_probe(struct spi_device *spi) |
316 |
+ |
317 |
+ return 0; |
318 |
+ |
319 |
+- |
320 |
+ err_netdev: |
321 |
+- free_irq(ndev->irq, ks); |
322 |
+- |
323 |
+-err_irq: |
324 |
++err_id: |
325 |
+ if (gpio_is_valid(gpio)) |
326 |
+ gpio_set_value(gpio, 0); |
327 |
+-err_id: |
328 |
+ regulator_disable(ks->vdd_reg); |
329 |
+ err_reg: |
330 |
+ regulator_disable(ks->vdd_io); |
331 |
+@@ -1587,7 +1588,6 @@ static int ks8851_remove(struct spi_device *spi) |
332 |
+ dev_info(&spi->dev, "remove\n"); |
333 |
+ |
334 |
+ unregister_netdev(priv->netdev); |
335 |
+- free_irq(spi->irq, priv); |
336 |
+ if (gpio_is_valid(priv->gpio)) |
337 |
+ gpio_set_value(priv->gpio, 0); |
338 |
+ regulator_disable(priv->vdd_reg); |
339 |
+diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c |
340 |
+index 0a2318cad34d..63ebc491057b 100644 |
341 |
+--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c |
342 |
++++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c |
343 |
+@@ -1038,6 +1038,8 @@ int qlcnic_do_lb_test(struct qlcnic_adapter *adapter, u8 mode) |
344 |
+ |
345 |
+ for (i = 0; i < QLCNIC_NUM_ILB_PKT; i++) { |
346 |
+ skb = netdev_alloc_skb(adapter->netdev, QLCNIC_ILB_PKT_SIZE); |
347 |
++ if (!skb) |
348 |
++ break; |
349 |
+ qlcnic_create_loopback_buff(skb->data, adapter->mac_addr); |
350 |
+ skb_put(skb, QLCNIC_ILB_PKT_SIZE); |
351 |
+ adapter->ahw->diag_cnt = 0; |
352 |
+diff --git a/drivers/net/ethernet/ti/netcp_ethss.c b/drivers/net/ethernet/ti/netcp_ethss.c |
353 |
+index d543298d6750..ff24524e7f46 100644 |
354 |
+--- a/drivers/net/ethernet/ti/netcp_ethss.c |
355 |
++++ b/drivers/net/ethernet/ti/netcp_ethss.c |
356 |
+@@ -3122,12 +3122,16 @@ static int gbe_probe(struct netcp_device *netcp_device, struct device *dev, |
357 |
+ |
358 |
+ ret = netcp_txpipe_init(&gbe_dev->tx_pipe, netcp_device, |
359 |
+ gbe_dev->dma_chan_name, gbe_dev->tx_queue_id); |
360 |
+- if (ret) |
361 |
++ if (ret) { |
362 |
++ of_node_put(interfaces); |
363 |
+ return ret; |
364 |
++ } |
365 |
+ |
366 |
+ ret = netcp_txpipe_open(&gbe_dev->tx_pipe); |
367 |
+- if (ret) |
368 |
++ if (ret) { |
369 |
++ of_node_put(interfaces); |
370 |
+ return ret; |
371 |
++ } |
372 |
+ |
373 |
+ /* Create network interfaces */ |
374 |
+ INIT_LIST_HEAD(&gbe_dev->gbe_intf_head); |
375 |
+diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c |
376 |
+index c688d68c39aa..a8afc92cbfca 100644 |
377 |
+--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c |
378 |
++++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c |
379 |
+@@ -1548,12 +1548,14 @@ static int axienet_probe(struct platform_device *pdev) |
380 |
+ ret = of_address_to_resource(np, 0, &dmares); |
381 |
+ if (ret) { |
382 |
+ dev_err(&pdev->dev, "unable to get DMA resource\n"); |
383 |
++ of_node_put(np); |
384 |
+ goto free_netdev; |
385 |
+ } |
386 |
+ lp->dma_regs = devm_ioremap_resource(&pdev->dev, &dmares); |
387 |
+ if (IS_ERR(lp->dma_regs)) { |
388 |
+ dev_err(&pdev->dev, "could not map DMA regs\n"); |
389 |
+ ret = PTR_ERR(lp->dma_regs); |
390 |
++ of_node_put(np); |
391 |
+ goto free_netdev; |
392 |
+ } |
393 |
+ lp->rx_irq = irq_of_parse_and_map(np, 1); |
394 |
+diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c |
395 |
+index f1f8227e7342..01f95d192d25 100644 |
396 |
+--- a/drivers/net/usb/ipheth.c |
397 |
++++ b/drivers/net/usb/ipheth.c |
398 |
+@@ -148,6 +148,7 @@ struct ipheth_device { |
399 |
+ u8 bulk_in; |
400 |
+ u8 bulk_out; |
401 |
+ struct delayed_work carrier_work; |
402 |
++ bool confirmed_pairing; |
403 |
+ }; |
404 |
+ |
405 |
+ static int ipheth_rx_submit(struct ipheth_device *dev, gfp_t mem_flags); |
406 |
+@@ -259,7 +260,7 @@ static void ipheth_rcvbulk_callback(struct urb *urb) |
407 |
+ |
408 |
+ dev->net->stats.rx_packets++; |
409 |
+ dev->net->stats.rx_bytes += len; |
410 |
+- |
411 |
++ dev->confirmed_pairing = true; |
412 |
+ netif_rx(skb); |
413 |
+ ipheth_rx_submit(dev, GFP_ATOMIC); |
414 |
+ } |
415 |
+@@ -280,14 +281,24 @@ static void ipheth_sndbulk_callback(struct urb *urb) |
416 |
+ dev_err(&dev->intf->dev, "%s: urb status: %d\n", |
417 |
+ __func__, status); |
418 |
+ |
419 |
+- netif_wake_queue(dev->net); |
420 |
++ if (status == 0) |
421 |
++ netif_wake_queue(dev->net); |
422 |
++ else |
423 |
++ // on URB error, trigger immediate poll |
424 |
++ schedule_delayed_work(&dev->carrier_work, 0); |
425 |
+ } |
426 |
+ |
427 |
+ static int ipheth_carrier_set(struct ipheth_device *dev) |
428 |
+ { |
429 |
+- struct usb_device *udev = dev->udev; |
430 |
++ struct usb_device *udev; |
431 |
+ int retval; |
432 |
+ |
433 |
++ if (!dev) |
434 |
++ return 0; |
435 |
++ if (!dev->confirmed_pairing) |
436 |
++ return 0; |
437 |
++ |
438 |
++ udev = dev->udev; |
439 |
+ retval = usb_control_msg(udev, |
440 |
+ usb_rcvctrlpipe(udev, IPHETH_CTRL_ENDP), |
441 |
+ IPHETH_CMD_CARRIER_CHECK, /* request */ |
442 |
+@@ -302,11 +313,14 @@ static int ipheth_carrier_set(struct ipheth_device *dev) |
443 |
+ return retval; |
444 |
+ } |
445 |
+ |
446 |
+- if (dev->ctrl_buf[0] == IPHETH_CARRIER_ON) |
447 |
++ if (dev->ctrl_buf[0] == IPHETH_CARRIER_ON) { |
448 |
+ netif_carrier_on(dev->net); |
449 |
+- else |
450 |
++ if (dev->tx_urb->status != -EINPROGRESS) |
451 |
++ netif_wake_queue(dev->net); |
452 |
++ } else { |
453 |
+ netif_carrier_off(dev->net); |
454 |
+- |
455 |
++ netif_stop_queue(dev->net); |
456 |
++ } |
457 |
+ return 0; |
458 |
+ } |
459 |
+ |
460 |
+@@ -386,7 +400,6 @@ static int ipheth_open(struct net_device *net) |
461 |
+ return retval; |
462 |
+ |
463 |
+ schedule_delayed_work(&dev->carrier_work, IPHETH_CARRIER_CHECK_TIMEOUT); |
464 |
+- netif_start_queue(net); |
465 |
+ return retval; |
466 |
+ } |
467 |
+ |
468 |
+@@ -489,7 +502,7 @@ static int ipheth_probe(struct usb_interface *intf, |
469 |
+ dev->udev = udev; |
470 |
+ dev->net = netdev; |
471 |
+ dev->intf = intf; |
472 |
+- |
473 |
++ dev->confirmed_pairing = false; |
474 |
+ /* Set up endpoints */ |
475 |
+ hintf = usb_altnum_to_altsetting(intf, IPHETH_ALT_INTFNUM); |
476 |
+ if (hintf == NULL) { |
477 |
+@@ -540,7 +553,9 @@ static int ipheth_probe(struct usb_interface *intf, |
478 |
+ retval = -EIO; |
479 |
+ goto err_register_netdev; |
480 |
+ } |
481 |
+- |
482 |
++ // carrier down and transmit queues stopped until packet from device |
483 |
++ netif_carrier_off(netdev); |
484 |
++ netif_tx_stop_all_queues(netdev); |
485 |
+ dev_info(&intf->dev, "Apple iPhone USB Ethernet device attached\n"); |
486 |
+ return 0; |
487 |
+ |
488 |
+diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c |
489 |
+index 237688af179b..f7630cf581cd 100644 |
490 |
+--- a/drivers/s390/scsi/zfcp_fc.c |
491 |
++++ b/drivers/s390/scsi/zfcp_fc.c |
492 |
+@@ -238,10 +238,6 @@ static void _zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req, u32 range, |
493 |
+ list_for_each_entry(port, &adapter->port_list, list) { |
494 |
+ if ((port->d_id & range) == (ntoh24(page->rscn_fid) & range)) |
495 |
+ zfcp_fc_test_link(port); |
496 |
+- if (!port->d_id) |
497 |
+- zfcp_erp_port_reopen(port, |
498 |
+- ZFCP_STATUS_COMMON_ERP_FAILED, |
499 |
+- "fcrscn1"); |
500 |
+ } |
501 |
+ read_unlock_irqrestore(&adapter->port_list_lock, flags); |
502 |
+ } |
503 |
+@@ -249,6 +245,7 @@ static void _zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req, u32 range, |
504 |
+ static void zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req) |
505 |
+ { |
506 |
+ struct fsf_status_read_buffer *status_buffer = (void *)fsf_req->data; |
507 |
++ struct zfcp_adapter *adapter = fsf_req->adapter; |
508 |
+ struct fc_els_rscn *head; |
509 |
+ struct fc_els_rscn_page *page; |
510 |
+ u16 i; |
511 |
+@@ -261,6 +258,22 @@ static void zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req) |
512 |
+ /* see FC-FS */ |
513 |
+ no_entries = head->rscn_plen / sizeof(struct fc_els_rscn_page); |
514 |
+ |
515 |
++ if (no_entries > 1) { |
516 |
++ /* handle failed ports */ |
517 |
++ unsigned long flags; |
518 |
++ struct zfcp_port *port; |
519 |
++ |
520 |
++ read_lock_irqsave(&adapter->port_list_lock, flags); |
521 |
++ list_for_each_entry(port, &adapter->port_list, list) { |
522 |
++ if (port->d_id) |
523 |
++ continue; |
524 |
++ zfcp_erp_port_reopen(port, |
525 |
++ ZFCP_STATUS_COMMON_ERP_FAILED, |
526 |
++ "fcrscn1"); |
527 |
++ } |
528 |
++ read_unlock_irqrestore(&adapter->port_list_lock, flags); |
529 |
++ } |
530 |
++ |
531 |
+ for (i = 1; i < no_entries; i++) { |
532 |
+ /* skip head and start with 1st element */ |
533 |
+ page++; |
534 |
+diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c |
535 |
+index f9f899ec9427..c158967b59d7 100644 |
536 |
+--- a/drivers/scsi/qla4xxx/ql4_os.c |
537 |
++++ b/drivers/scsi/qla4xxx/ql4_os.c |
538 |
+@@ -3207,6 +3207,8 @@ static int qla4xxx_conn_bind(struct iscsi_cls_session *cls_session, |
539 |
+ if (iscsi_conn_bind(cls_session, cls_conn, is_leading)) |
540 |
+ return -EINVAL; |
541 |
+ ep = iscsi_lookup_endpoint(transport_fd); |
542 |
++ if (!ep) |
543 |
++ return -EINVAL; |
544 |
+ conn = cls_conn->dd_data; |
545 |
+ qla_conn = conn->dd_data; |
546 |
+ qla_conn->qla_ep = ep->dd_data; |
547 |
+diff --git a/drivers/staging/rtl8712/rtl8712_cmd.c b/drivers/staging/rtl8712/rtl8712_cmd.c |
548 |
+index 9f61583af150..41b667c8385c 100644 |
549 |
+--- a/drivers/staging/rtl8712/rtl8712_cmd.c |
550 |
++++ b/drivers/staging/rtl8712/rtl8712_cmd.c |
551 |
+@@ -158,17 +158,9 @@ static u8 write_macreg_hdl(struct _adapter *padapter, u8 *pbuf) |
552 |
+ |
553 |
+ static u8 read_bbreg_hdl(struct _adapter *padapter, u8 *pbuf) |
554 |
+ { |
555 |
+- u32 val; |
556 |
+- void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd); |
557 |
+ struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; |
558 |
+ |
559 |
+- if (pcmd->rsp && pcmd->rspsz > 0) |
560 |
+- memcpy(pcmd->rsp, (u8 *)&val, pcmd->rspsz); |
561 |
+- pcmd_callback = cmd_callback[pcmd->cmdcode].callback; |
562 |
+- if (!pcmd_callback) |
563 |
+- r8712_free_cmd_obj(pcmd); |
564 |
+- else |
565 |
+- pcmd_callback(padapter, pcmd); |
566 |
++ r8712_free_cmd_obj(pcmd); |
567 |
+ return H2C_SUCCESS; |
568 |
+ } |
569 |
+ |
570 |
+diff --git a/drivers/staging/rtl8712/rtl8712_cmd.h b/drivers/staging/rtl8712/rtl8712_cmd.h |
571 |
+index 67e9e910aef9..d10a59d4a550 100644 |
572 |
+--- a/drivers/staging/rtl8712/rtl8712_cmd.h |
573 |
++++ b/drivers/staging/rtl8712/rtl8712_cmd.h |
574 |
+@@ -152,7 +152,7 @@ enum rtl8712_h2c_cmd { |
575 |
+ static struct _cmd_callback cmd_callback[] = { |
576 |
+ {GEN_CMD_CODE(_Read_MACREG), NULL}, /*0*/ |
577 |
+ {GEN_CMD_CODE(_Write_MACREG), NULL}, |
578 |
+- {GEN_CMD_CODE(_Read_BBREG), &r8712_getbbrfreg_cmdrsp_callback}, |
579 |
++ {GEN_CMD_CODE(_Read_BBREG), NULL}, |
580 |
+ {GEN_CMD_CODE(_Write_BBREG), NULL}, |
581 |
+ {GEN_CMD_CODE(_Read_RFREG), &r8712_getbbrfreg_cmdrsp_callback}, |
582 |
+ {GEN_CMD_CODE(_Write_RFREG), NULL}, /*5*/ |
583 |
+diff --git a/drivers/tty/serial/ar933x_uart.c b/drivers/tty/serial/ar933x_uart.c |
584 |
+index 73137f4aac20..d4462512605b 100644 |
585 |
+--- a/drivers/tty/serial/ar933x_uart.c |
586 |
++++ b/drivers/tty/serial/ar933x_uart.c |
587 |
+@@ -52,11 +52,6 @@ struct ar933x_uart_port { |
588 |
+ struct clk *clk; |
589 |
+ }; |
590 |
+ |
591 |
+-static inline bool ar933x_uart_console_enabled(void) |
592 |
+-{ |
593 |
+- return IS_ENABLED(CONFIG_SERIAL_AR933X_CONSOLE); |
594 |
+-} |
595 |
+- |
596 |
+ static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, |
597 |
+ int offset) |
598 |
+ { |
599 |
+@@ -511,6 +506,7 @@ static struct uart_ops ar933x_uart_ops = { |
600 |
+ .verify_port = ar933x_uart_verify_port, |
601 |
+ }; |
602 |
+ |
603 |
++#ifdef CONFIG_SERIAL_AR933X_CONSOLE |
604 |
+ static struct ar933x_uart_port * |
605 |
+ ar933x_console_ports[CONFIG_SERIAL_AR933X_NR_UARTS]; |
606 |
+ |
607 |
+@@ -607,14 +603,7 @@ static struct console ar933x_uart_console = { |
608 |
+ .index = -1, |
609 |
+ .data = &ar933x_uart_driver, |
610 |
+ }; |
611 |
+- |
612 |
+-static void ar933x_uart_add_console_port(struct ar933x_uart_port *up) |
613 |
+-{ |
614 |
+- if (!ar933x_uart_console_enabled()) |
615 |
+- return; |
616 |
+- |
617 |
+- ar933x_console_ports[up->port.line] = up; |
618 |
+-} |
619 |
++#endif /* CONFIG_SERIAL_AR933X_CONSOLE */ |
620 |
+ |
621 |
+ static struct uart_driver ar933x_uart_driver = { |
622 |
+ .owner = THIS_MODULE, |
623 |
+@@ -703,7 +692,9 @@ static int ar933x_uart_probe(struct platform_device *pdev) |
624 |
+ baud = ar933x_uart_get_baud(port->uartclk, 0, AR933X_UART_MAX_STEP); |
625 |
+ up->max_baud = min_t(unsigned int, baud, AR933X_UART_MAX_BAUD); |
626 |
+ |
627 |
+- ar933x_uart_add_console_port(up); |
628 |
++#ifdef CONFIG_SERIAL_AR933X_CONSOLE |
629 |
++ ar933x_console_ports[up->port.line] = up; |
630 |
++#endif |
631 |
+ |
632 |
+ ret = uart_add_one_port(&ar933x_uart_driver, &up->port); |
633 |
+ if (ret) |
634 |
+@@ -752,8 +743,9 @@ static int __init ar933x_uart_init(void) |
635 |
+ { |
636 |
+ int ret; |
637 |
+ |
638 |
+- if (ar933x_uart_console_enabled()) |
639 |
+- ar933x_uart_driver.cons = &ar933x_uart_console; |
640 |
++#ifdef CONFIG_SERIAL_AR933X_CONSOLE |
641 |
++ ar933x_uart_driver.cons = &ar933x_uart_console; |
642 |
++#endif |
643 |
+ |
644 |
+ ret = uart_register_driver(&ar933x_uart_driver); |
645 |
+ if (ret) |
646 |
+diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c |
647 |
+index ea6b62cece88..82451bb6622b 100644 |
648 |
+--- a/drivers/tty/serial/sc16is7xx.c |
649 |
++++ b/drivers/tty/serial/sc16is7xx.c |
650 |
+@@ -1482,7 +1482,7 @@ static int __init sc16is7xx_init(void) |
651 |
+ ret = i2c_add_driver(&sc16is7xx_i2c_uart_driver); |
652 |
+ if (ret < 0) { |
653 |
+ pr_err("failed to init sc16is7xx i2c --> %d\n", ret); |
654 |
+- return ret; |
655 |
++ goto err_i2c; |
656 |
+ } |
657 |
+ #endif |
658 |
+ |
659 |
+@@ -1490,10 +1490,18 @@ static int __init sc16is7xx_init(void) |
660 |
+ ret = spi_register_driver(&sc16is7xx_spi_uart_driver); |
661 |
+ if (ret < 0) { |
662 |
+ pr_err("failed to init sc16is7xx spi --> %d\n", ret); |
663 |
+- return ret; |
664 |
++ goto err_spi; |
665 |
+ } |
666 |
+ #endif |
667 |
+ return ret; |
668 |
++ |
669 |
++err_spi: |
670 |
++#ifdef CONFIG_SERIAL_SC16IS7XX_I2C |
671 |
++ i2c_del_driver(&sc16is7xx_i2c_uart_driver); |
672 |
++#endif |
673 |
++err_i2c: |
674 |
++ uart_unregister_driver(&sc16is7xx_uart); |
675 |
++ return ret; |
676 |
+ } |
677 |
+ module_init(sc16is7xx_init); |
678 |
+ |
679 |
+diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c |
680 |
+index 40396a265a3f..f57d293a1791 100644 |
681 |
+--- a/drivers/usb/gadget/udc/net2272.c |
682 |
++++ b/drivers/usb/gadget/udc/net2272.c |
683 |
+@@ -958,6 +958,7 @@ net2272_dequeue(struct usb_ep *_ep, struct usb_request *_req) |
684 |
+ break; |
685 |
+ } |
686 |
+ if (&req->req != _req) { |
687 |
++ ep->stopped = stopped; |
688 |
+ spin_unlock_irqrestore(&ep->dev->lock, flags); |
689 |
+ return -EINVAL; |
690 |
+ } |
691 |
+diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c |
692 |
+index 7a8c36642293..dfaed8e8cc52 100644 |
693 |
+--- a/drivers/usb/gadget/udc/net2280.c |
694 |
++++ b/drivers/usb/gadget/udc/net2280.c |
695 |
+@@ -870,9 +870,6 @@ static void start_queue(struct net2280_ep *ep, u32 dmactl, u32 td_dma) |
696 |
+ (void) readl(&ep->dev->pci->pcimstctl); |
697 |
+ |
698 |
+ writel(BIT(DMA_START), &dma->dmastat); |
699 |
+- |
700 |
+- if (!ep->is_in) |
701 |
+- stop_out_naking(ep); |
702 |
+ } |
703 |
+ |
704 |
+ static void start_dma(struct net2280_ep *ep, struct net2280_request *req) |
705 |
+@@ -911,6 +908,7 @@ static void start_dma(struct net2280_ep *ep, struct net2280_request *req) |
706 |
+ writel(BIT(DMA_START), &dma->dmastat); |
707 |
+ return; |
708 |
+ } |
709 |
++ stop_out_naking(ep); |
710 |
+ } |
711 |
+ |
712 |
+ tmp = dmactl_default; |
713 |
+@@ -1279,9 +1277,9 @@ static int net2280_dequeue(struct usb_ep *_ep, struct usb_request *_req) |
714 |
+ break; |
715 |
+ } |
716 |
+ if (&req->req != _req) { |
717 |
++ ep->stopped = stopped; |
718 |
+ spin_unlock_irqrestore(&ep->dev->lock, flags); |
719 |
+- dev_err(&ep->dev->pdev->dev, "%s: Request mismatch\n", |
720 |
+- __func__); |
721 |
++ ep_dbg(ep->dev, "%s: Request mismatch\n", __func__); |
722 |
+ return -EINVAL; |
723 |
+ } |
724 |
+ |
725 |
+diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c |
726 |
+index 43618976d68a..3efb7b0e8269 100644 |
727 |
+--- a/drivers/usb/host/u132-hcd.c |
728 |
++++ b/drivers/usb/host/u132-hcd.c |
729 |
+@@ -3208,6 +3208,9 @@ static int __init u132_hcd_init(void) |
730 |
+ printk(KERN_INFO "driver %s\n", hcd_name); |
731 |
+ workqueue = create_singlethread_workqueue("u132"); |
732 |
+ retval = platform_driver_register(&u132_platform_driver); |
733 |
++ if (retval) |
734 |
++ destroy_workqueue(workqueue); |
735 |
++ |
736 |
+ return retval; |
737 |
+ } |
738 |
+ |
739 |
+diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c |
740 |
+index 1d48e62f4f52..0d5b667c0e65 100644 |
741 |
+--- a/drivers/vfio/vfio_iommu_type1.c |
742 |
++++ b/drivers/vfio/vfio_iommu_type1.c |
743 |
+@@ -53,10 +53,16 @@ module_param_named(disable_hugepages, |
744 |
+ MODULE_PARM_DESC(disable_hugepages, |
745 |
+ "Disable VFIO IOMMU support for IOMMU hugepages."); |
746 |
+ |
747 |
++static unsigned int dma_entry_limit __read_mostly = U16_MAX; |
748 |
++module_param_named(dma_entry_limit, dma_entry_limit, uint, 0644); |
749 |
++MODULE_PARM_DESC(dma_entry_limit, |
750 |
++ "Maximum number of user DMA mappings per container (65535)."); |
751 |
++ |
752 |
+ struct vfio_iommu { |
753 |
+ struct list_head domain_list; |
754 |
+ struct mutex lock; |
755 |
+ struct rb_root dma_list; |
756 |
++ unsigned int dma_avail; |
757 |
+ bool v2; |
758 |
+ bool nesting; |
759 |
+ }; |
760 |
+@@ -384,6 +390,7 @@ static void vfio_remove_dma(struct vfio_iommu *iommu, struct vfio_dma *dma) |
761 |
+ vfio_unmap_unpin(iommu, dma); |
762 |
+ vfio_unlink_dma(iommu, dma); |
763 |
+ kfree(dma); |
764 |
++ iommu->dma_avail++; |
765 |
+ } |
766 |
+ |
767 |
+ static unsigned long vfio_pgsize_bitmap(struct vfio_iommu *iommu) |
768 |
+@@ -584,12 +591,18 @@ static int vfio_dma_do_map(struct vfio_iommu *iommu, |
769 |
+ return -EEXIST; |
770 |
+ } |
771 |
+ |
772 |
++ if (!iommu->dma_avail) { |
773 |
++ mutex_unlock(&iommu->lock); |
774 |
++ return -ENOSPC; |
775 |
++ } |
776 |
++ |
777 |
+ dma = kzalloc(sizeof(*dma), GFP_KERNEL); |
778 |
+ if (!dma) { |
779 |
+ mutex_unlock(&iommu->lock); |
780 |
+ return -ENOMEM; |
781 |
+ } |
782 |
+ |
783 |
++ iommu->dma_avail--; |
784 |
+ dma->iova = iova; |
785 |
+ dma->vaddr = vaddr; |
786 |
+ dma->prot = prot; |
787 |
+@@ -905,6 +918,7 @@ static void *vfio_iommu_type1_open(unsigned long arg) |
788 |
+ |
789 |
+ INIT_LIST_HEAD(&iommu->domain_list); |
790 |
+ iommu->dma_list = RB_ROOT; |
791 |
++ iommu->dma_avail = dma_entry_limit; |
792 |
+ mutex_init(&iommu->lock); |
793 |
+ |
794 |
+ return iommu; |
795 |
+diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c |
796 |
+index 30d9d9e7057d..7a4052501866 100644 |
797 |
+--- a/fs/ceph/inode.c |
798 |
++++ b/fs/ceph/inode.c |
799 |
+@@ -523,6 +523,7 @@ static void ceph_i_callback(struct rcu_head *head) |
800 |
+ struct inode *inode = container_of(head, struct inode, i_rcu); |
801 |
+ struct ceph_inode_info *ci = ceph_inode(inode); |
802 |
+ |
803 |
++ kfree(ci->i_symlink); |
804 |
+ kmem_cache_free(ceph_inode_cachep, ci); |
805 |
+ } |
806 |
+ |
807 |
+@@ -554,7 +555,6 @@ void ceph_destroy_inode(struct inode *inode) |
808 |
+ ceph_put_snap_realm(mdsc, realm); |
809 |
+ } |
810 |
+ |
811 |
+- kfree(ci->i_symlink); |
812 |
+ while ((n = rb_first(&ci->i_fragtree)) != NULL) { |
813 |
+ frag = rb_entry(n, struct ceph_inode_frag, node); |
814 |
+ rb_erase(n, &ci->i_fragtree); |
815 |
+diff --git a/fs/nfs/client.c b/fs/nfs/client.c |
816 |
+index ebecfb8fba06..28d8a57a9908 100644 |
817 |
+--- a/fs/nfs/client.c |
818 |
++++ b/fs/nfs/client.c |
819 |
+@@ -440,7 +440,7 @@ void nfs_init_timeout_values(struct rpc_timeout *to, int proto, |
820 |
+ case XPRT_TRANSPORT_RDMA: |
821 |
+ if (retrans == NFS_UNSPEC_RETRANS) |
822 |
+ to->to_retries = NFS_DEF_TCP_RETRANS; |
823 |
+- if (timeo == NFS_UNSPEC_TIMEO || to->to_retries == 0) |
824 |
++ if (timeo == NFS_UNSPEC_TIMEO || to->to_initval == 0) |
825 |
+ to->to_initval = NFS_DEF_TCP_TIMEO * HZ / 10; |
826 |
+ if (to->to_initval > NFS_MAX_TCP_TIMEOUT) |
827 |
+ to->to_initval = NFS_MAX_TCP_TIMEOUT; |
828 |
+diff --git a/net/bridge/br_netfilter_hooks.c b/net/bridge/br_netfilter_hooks.c |
829 |
+index 38865deab3ac..0c96773d1829 100644 |
830 |
+--- a/net/bridge/br_netfilter_hooks.c |
831 |
++++ b/net/bridge/br_netfilter_hooks.c |
832 |
+@@ -512,6 +512,7 @@ static unsigned int br_nf_pre_routing(void *priv, |
833 |
+ nf_bridge->ipv4_daddr = ip_hdr(skb)->daddr; |
834 |
+ |
835 |
+ skb->protocol = htons(ETH_P_IP); |
836 |
++ skb->transport_header = skb->network_header + ip_hdr(skb)->ihl * 4; |
837 |
+ |
838 |
+ NF_HOOK(NFPROTO_IPV4, NF_INET_PRE_ROUTING, state->net, state->sk, skb, |
839 |
+ skb->dev, NULL, |
840 |
+diff --git a/net/bridge/br_netfilter_ipv6.c b/net/bridge/br_netfilter_ipv6.c |
841 |
+index a1b57cb07f1e..8c08dd07419f 100644 |
842 |
+--- a/net/bridge/br_netfilter_ipv6.c |
843 |
++++ b/net/bridge/br_netfilter_ipv6.c |
844 |
+@@ -235,6 +235,8 @@ unsigned int br_nf_pre_routing_ipv6(void *priv, |
845 |
+ nf_bridge->ipv6_daddr = ipv6_hdr(skb)->daddr; |
846 |
+ |
847 |
+ skb->protocol = htons(ETH_P_IPV6); |
848 |
++ skb->transport_header = skb->network_header + sizeof(struct ipv6hdr); |
849 |
++ |
850 |
+ NF_HOOK(NFPROTO_IPV6, NF_INET_PRE_ROUTING, state->net, state->sk, skb, |
851 |
+ skb->dev, NULL, |
852 |
+ br_nf_pre_routing_finish_ipv6); |
853 |
+diff --git a/net/netfilter/nft_set_rbtree.c b/net/netfilter/nft_set_rbtree.c |
854 |
+index 93820e0d8814..4ee8acded0a4 100644 |
855 |
+--- a/net/netfilter/nft_set_rbtree.c |
856 |
++++ b/net/netfilter/nft_set_rbtree.c |
857 |
+@@ -191,10 +191,6 @@ static void *nft_rbtree_deactivate(const struct net *net, |
858 |
+ else if (d > 0) |
859 |
+ parent = parent->rb_right; |
860 |
+ else { |
861 |
+- if (!nft_set_elem_active(&rbe->ext, genmask)) { |
862 |
+- parent = parent->rb_left; |
863 |
+- continue; |
864 |
+- } |
865 |
+ if (nft_rbtree_interval_end(rbe) && |
866 |
+ !nft_rbtree_interval_end(this)) { |
867 |
+ parent = parent->rb_left; |
868 |
+@@ -203,6 +199,9 @@ static void *nft_rbtree_deactivate(const struct net *net, |
869 |
+ nft_rbtree_interval_end(this)) { |
870 |
+ parent = parent->rb_right; |
871 |
+ continue; |
872 |
++ } else if (!nft_set_elem_active(&rbe->ext, genmask)) { |
873 |
++ parent = parent->rb_left; |
874 |
++ continue; |
875 |
+ } |
876 |
+ nft_set_elem_change_active(net, set, &rbe->ext); |
877 |
+ return rbe; |
878 |
+diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c |
879 |
+index d58de1dc5360..510049a7bd1d 100644 |
880 |
+--- a/scripts/kconfig/lxdialog/inputbox.c |
881 |
++++ b/scripts/kconfig/lxdialog/inputbox.c |
882 |
+@@ -126,7 +126,8 @@ do_resize: |
883 |
+ case KEY_DOWN: |
884 |
+ break; |
885 |
+ case KEY_BACKSPACE: |
886 |
+- case 127: |
887 |
++ case 8: /* ^H */ |
888 |
++ case 127: /* ^? */ |
889 |
+ if (pos) { |
890 |
+ wattrset(dialog, dlg.inputbox.atr); |
891 |
+ if (input_x == 0) { |
892 |
+diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c |
893 |
+index d42d534a66cd..f7049e288e93 100644 |
894 |
+--- a/scripts/kconfig/nconf.c |
895 |
++++ b/scripts/kconfig/nconf.c |
896 |
+@@ -1046,7 +1046,7 @@ static int do_match(int key, struct match_state *state, int *ans) |
897 |
+ state->match_direction = FIND_NEXT_MATCH_UP; |
898 |
+ *ans = get_mext_match(state->pattern, |
899 |
+ state->match_direction); |
900 |
+- } else if (key == KEY_BACKSPACE || key == 127) { |
901 |
++ } else if (key == KEY_BACKSPACE || key == 8 || key == 127) { |
902 |
+ state->pattern[strlen(state->pattern)-1] = '\0'; |
903 |
+ adj_match_dir(&state->match_direction); |
904 |
+ } else |
905 |
+diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c |
906 |
+index 4b2f44c20caf..9a65035cf787 100644 |
907 |
+--- a/scripts/kconfig/nconf.gui.c |
908 |
++++ b/scripts/kconfig/nconf.gui.c |
909 |
+@@ -439,7 +439,8 @@ int dialog_inputbox(WINDOW *main_window, |
910 |
+ case KEY_F(F_EXIT): |
911 |
+ case KEY_F(F_BACK): |
912 |
+ break; |
913 |
+- case 127: |
914 |
++ case 8: /* ^H */ |
915 |
++ case 127: /* ^? */ |
916 |
+ case KEY_BACKSPACE: |
917 |
+ if (cursor_position > 0) { |
918 |
+ memmove(&result[cursor_position-1], |