Messages in this thread | | | Date | Sun, 26 Jun 2022 11:15:29 -0600 | Subject | Re: [PATCH v2] ipv6/sit: fix ipip6_tunnel_get_prl when memory allocation fails | From | David Ahern <> |
| |
On 6/24/22 11:45 PM, zys.zljxml@gmail.com wrote: > From: katrinzhou <katrinzhou@tencent.com> > > Fix an illegal copy_to_user() attempt when the system fails to > allocate memory for prl due to a lack of memory. > > Addresses-Coverity: ("Unused value") > Fixes: 300aaeeaab5f ("[IPV6] SIT: Add SIOCGETPRL ioctl to get/dump PRL.") > Signed-off-by: katrinzhou <katrinzhou@tencent.com> > --- > > Changes in v2: > - Move the position of label "out" > > net/ipv6/sit.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) >
Reviewed-by: David Ahern <dsahern@kernel.org>
| |