View | Details | Raw Unified | Return to bug 54418
Collapse All | Expand All

(-)src/sys/vm/vm_map.c (-1 / +2 lines)
Lines 1393-1399 vm_map_protect(vm_map_t map, vm_offset_t Link Here
1393
			vm_map_unlock(map);
1393
			vm_map_unlock(map);
1394
			return (KERN_INVALID_ARGUMENT);
1394
			return (KERN_INVALID_ARGUMENT);
1395
		}
1395
		}
1396
		if ((new_prot & current->max_protection) != new_prot) {
1396
		if (!set_max &&
1397
		    (new_prot & current->max_protection) != new_prot) {
1397
			vm_map_unlock(map);
1398
			vm_map_unlock(map);
1398
			return (KERN_PROTECTION_FAILURE);
1399
			return (KERN_PROTECTION_FAILURE);
1399
		}
1400
		}

Return to bug 54418