mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-30 14:20:21 +01:00
fix typos under linux. tdfx driver now checked to work under FreeBSD &
Linux.
This commit is contained in:
parent
39dd850ab0
commit
5f1e98e1a3
2 changed files with 4 additions and 4 deletions
|
|
@ -102,7 +102,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
|
|||
DRM_OS_RETURN(ENOMEM);
|
||||
|
||||
#ifdef __linux__
|
||||
if ( copy_from_user( &map, (drm_map_t *)data, sizeof(map) ) ) {
|
||||
if ( copy_from_user( map, (drm_map_t *)data, sizeof(*map) ) ) {
|
||||
DRM(free)( map, sizeof(*map), DRM_MEM_MAPS );
|
||||
DRM_OS_RETURN(EFAULT);
|
||||
}
|
||||
|
|
@ -233,7 +233,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
|
|||
DRM_OS_UNLOCK;
|
||||
|
||||
#ifdef __linux__
|
||||
if ( copy_to_user( (drm_map_t *)data, &map, sizeof(map) ) )
|
||||
if ( copy_to_user( (drm_map_t *)data, map, sizeof(*map) ) )
|
||||
DRM_OS_RETURN(EFAULT);
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
|
|||
DRM_OS_RETURN(ENOMEM);
|
||||
|
||||
#ifdef __linux__
|
||||
if ( copy_from_user( &map, (drm_map_t *)data, sizeof(map) ) ) {
|
||||
if ( copy_from_user( map, (drm_map_t *)data, sizeof(*map) ) ) {
|
||||
DRM(free)( map, sizeof(*map), DRM_MEM_MAPS );
|
||||
DRM_OS_RETURN(EFAULT);
|
||||
}
|
||||
|
|
@ -233,7 +233,7 @@ int DRM(addmap)( DRM_OS_IOCTL )
|
|||
DRM_OS_UNLOCK;
|
||||
|
||||
#ifdef __linux__
|
||||
if ( copy_to_user( (drm_map_t *)data, &map, sizeof(map) ) )
|
||||
if ( copy_to_user( (drm_map_t *)data, map, sizeof(*map) ) )
|
||||
DRM_OS_RETURN(EFAULT);
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue