fix typos under linux. tdfx driver now checked to work under FreeBSD &

Linux.
This commit is contained in:
Alan Hourihane 2001-05-11 14:32:55 +00:00
parent 39dd850ab0
commit 5f1e98e1a3
2 changed files with 4 additions and 4 deletions

View file

@ -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__

View file

@ -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__