Commit 3a73702
l2tp_eth: fix memory allocation
Since .size is set properly in "struct pernet_operations l2tp_eth_net_ops",
allocating space for "struct l2tp_eth_net" by hand is not correct, even causes
memory leakage.
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent e773aaf commit 3a73702
1 file changed
+1
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 279 | + | |
285 | 280 | | |
286 | 281 | | |
287 | 282 | | |
288 | 283 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | 284 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 285 | | |
312 | 286 | | |
313 | 287 | | |
314 | 288 | | |
315 | | - | |
316 | 289 | | |
317 | 290 | | |
318 | 291 | | |
| |||
0 commit comments