Gao Feng
9783ccd0f2
net: Fix one possible memleak in ip_setup_cork
...
It would allocate memory in this function when the cork->opt is NULL. But
the memory isn't freed if failed in the latter rt check, and return error
directly. It causes the memleak if its caller is ip_make_skb which also
doesn't free the cork->opt when meet a error.
Now move the rt check ahead to avoid the memleak.
Signed-off-by: Gao Feng <gfree.wind@vip.163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-16 12:57:06 -04:00
..
2017-11-02 11:10:55 +01:00
2018-04-05 21:36:23 -07:00
2017-11-21 15:57:07 -08:00
2018-04-01 20:53:50 -04:00
2018-03-26 12:07:48 -04:00
2018-03-26 12:07:48 -04:00
2018-03-26 12:07:48 -04:00
2018-04-01 19:49:34 -04:00
2018-04-08 17:19:15 -04:00
2018-02-01 07:43:56 -08:00
2018-03-31 22:19:00 -04:00
2018-03-27 13:18:09 -04:00
2018-03-27 13:18:09 -04:00
2018-04-10 12:25:30 -07:00
2018-04-12 22:01:22 -04:00
2018-04-07 22:32:31 -04:00
2018-03-26 12:07:48 -04:00
2018-03-26 12:07:48 -04:00
2018-04-08 10:34:49 -04:00
2017-10-25 13:00:27 +09:00
2018-04-04 12:04:59 -04:00
2017-11-01 12:19:03 +09:00
2018-04-16 12:57:06 -04:00
2018-04-05 22:23:43 -04:00
2018-03-23 11:31:58 -04:00
2018-03-27 13:18:09 -04:00
2018-03-27 13:18:09 -04:00
2018-04-13 12:17:26 -04:00
2017-11-21 16:35:54 -08:00
2018-04-01 19:49:34 -04:00
2018-03-29 16:23:26 -04:00
2018-03-28 22:55:18 +02:00
2018-03-27 13:18:09 -04:00
2018-03-27 10:38:26 -04:00
2018-04-01 19:49:34 -04:00
2018-02-14 14:01:41 -05:00
2018-04-07 22:32:31 -04:00
2018-03-26 12:07:48 -04:00
2018-02-19 18:46:11 -05:00
2017-11-08 16:12:33 +09:00
2018-03-29 13:47:54 -04:00
2018-04-16 11:38:43 -04:00
2018-03-27 13:18:09 -04:00
2017-11-01 12:19:03 +09:00
2018-03-06 01:20:46 -05:00
2018-04-11 10:24:01 -04:00
2018-02-11 14:34:03 -08:00
2018-03-26 12:07:48 -04:00
2018-04-04 11:04:08 -04:00
2018-04-07 12:36:45 -04:00
2018-04-12 22:01:05 -04:00
2018-04-01 19:49:34 -04:00
2018-04-12 21:54:59 -04:00
2018-04-05 19:15:29 -07:00
2017-11-10 13:41:40 +09:00
2018-04-12 21:55:38 -04:00
2018-04-12 21:46:10 -04:00
2018-04-04 11:13:40 -04:00
2018-02-12 14:15:04 -05:00
2017-11-02 11:10:55 +01:00
2018-03-31 23:33:04 -04:00
2018-03-26 12:07:48 -04:00
2018-04-01 19:49:34 -04:00
2018-04-02 20:15:20 +02:00
2018-02-01 09:51:57 -08:00
2017-11-28 13:55:00 +01:00
2018-04-05 11:56:35 -07:00
2018-03-27 13:18:09 -04:00