mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-01 06:00:15 +01:00
another linux fix
This commit is contained in:
parent
f7bb776038
commit
b854253533
2 changed files with 14 additions and 2 deletions
|
|
@ -233,7 +233,13 @@ int DRM(addmap)( DRM_OS_IOCTL )
|
|||
#endif
|
||||
DRM_OS_UNLOCK;
|
||||
|
||||
DRM_OS_KRNTOUSR((drm_map_t *)data, *map, sizeof(*map) );
|
||||
#ifdef __linux__
|
||||
if ( copy_to_user( (drm_map_t *)data, map, sizeof(*map) ) )
|
||||
DRM_OS_RETURN(EFAULT);
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
*(drm_map_t *)data = *map;
|
||||
#endif
|
||||
|
||||
if ( map->type != _DRM_SHM ) {
|
||||
#ifdef __linux__
|
||||
|
|
|
|||
|
|
@ -233,7 +233,13 @@ int DRM(addmap)( DRM_OS_IOCTL )
|
|||
#endif
|
||||
DRM_OS_UNLOCK;
|
||||
|
||||
DRM_OS_KRNTOUSR((drm_map_t *)data, *map, sizeof(*map) );
|
||||
#ifdef __linux__
|
||||
if ( copy_to_user( (drm_map_t *)data, map, sizeof(*map) ) )
|
||||
DRM_OS_RETURN(EFAULT);
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
*(drm_map_t *)data = *map;
|
||||
#endif
|
||||
|
||||
if ( map->type != _DRM_SHM ) {
|
||||
#ifdef __linux__
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue