Applied, thanks!

Joan Lledó, le mer. 05 juil. 2023 21:38:12 +0200, a ecrit:
> From: Joan Lledó <jlle...@member.fsf.org>
> 
> * pci-arbiter/netfs_impl.c:
>   * get_filemap_region(): Return MACH_PORT_NULL and set errno to EOPNOTSUPP
>     when the client tries to map a IO region file.
> ---
>  pci-arbiter/netfs_impl.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/pci-arbiter/netfs_impl.c b/pci-arbiter/netfs_impl.c
> index b66f0019..4bb5c97a 100644
> --- a/pci-arbiter/netfs_impl.c
> +++ b/pci-arbiter/netfs_impl.c
> @@ -583,6 +583,9 @@ get_filemap_region (struct node *node, vm_prot_t prot)
>      strtol (&node->nn->ln->name[strlen (node->nn->ln->name) - 1], 0, 16);
>    region = &node->nn->ln->device->regions[reg_num];
>  
> +  if (region->is_IO)
> +    goto error;
> +
>    /* Ensure the region is mapped */
>    err = device_map_region (node->nn->ln->device, region,
>                          &node->nn->ln->region_maps[reg_num]);
> -- 
> 2.40.1
> 
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.

Reply via email to