Dan Carpenter
f740c34ee5
bpf: fix oops on allocation failure
...
"err" is set to zero if bpf_map_area_alloc() fails so it means we return
ERR_PTR(0) which is NULL. The caller, find_and_alloc_map(), is not
expecting NULL returns and will oops.
Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-28 15:23:34 -07:00
..
2017-08-28 15:23:34 -07:00
2017-08-02 17:16:12 -07:00
2017-06-09 11:47:38 +02:00
2017-08-21 17:06:42 -07:00
2017-05-12 15:57:15 -07:00
2017-08-20 10:49:05 +02:00
2017-06-20 10:42:19 +02:00
2017-07-21 11:11:23 -07:00
2017-08-10 15:54:06 -07:00
2017-07-05 11:11:26 -07:00
2017-06-08 18:52:45 -07:00
2017-07-25 11:17:02 +02:00
2017-08-01 14:20:53 +02:00
2017-08-15 20:23:23 -07:00
2017-05-23 10:01:37 +02:00
2017-05-03 11:05:15 -07:00
2017-05-03 11:05:15 -07:00
2017-08-16 16:48:34 -07:00
2017-07-20 10:22:26 -07:00
2017-06-12 18:07:43 -04:00
2017-05-02 10:16:05 -04:00
2017-07-05 11:24:05 -07:00
2017-07-06 20:57:13 -07:00
2017-07-11 22:25:44 +02:00
2017-07-12 16:26:00 -07:00
2017-05-18 10:30:19 -06:00
2017-07-10 16:32:36 -07:00
2017-07-10 16:32:35 -07:00
2017-08-10 15:54:07 -07:00
2017-08-09 14:00:54 -07:00
2017-07-10 16:32:34 -07:00
2017-05-08 17:15:10 -07:00
2017-05-26 10:10:45 +02:00
2017-07-10 16:32:34 -07:00
2017-07-12 16:26:01 -07:00
2017-05-08 17:15:12 -07:00
2017-07-12 16:26:00 -07:00
2017-07-12 16:26:02 -07:00
2017-07-12 16:26:02 -07:00
2017-07-12 16:26:00 -07:00
2017-08-18 15:32:01 -07:00
2017-07-08 11:05:35 +02:00
2017-07-12 16:25:59 -07:00
2017-07-12 16:26:02 -07:00
2017-07-06 16:24:32 -07:00
2017-07-12 17:22:01 -07:00
2017-05-26 10:10:37 +02:00
2017-04-18 10:37:13 +02:00
2017-05-13 17:26:01 -05:00
2017-08-21 12:47:31 -07:00
2017-05-23 07:40:44 -05:00
2017-05-02 11:38:06 -07:00
2017-06-26 09:24:00 -07:00
2017-08-18 15:32:02 -07:00
2017-05-23 10:01:32 +02:00
2017-04-11 09:06:32 +02:00
2017-05-26 10:10:36 +02:00
2017-07-12 09:15:00 -07:00
2017-07-12 16:26:00 -07:00
2017-07-12 16:26:02 -07:00
2017-05-08 17:15:12 -07:00
2017-08-18 12:35:02 +02:00
2017-08-18 12:35:02 +02:00
2017-07-28 11:05:52 -04:00