Changeset 305 for GPL/branches/uniaud-2.0/lib32/misc.c
- Timestamp:
- Mar 24, 2008, 2:43:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud-2.0/lib32/misc.c
r73 r305 120 120 //****************************************************************************** 121 121 //****************************************************************************** 122 #if 0 122 123 mem_map_t *virt_to_page(int x) 123 124 { … … 125 126 return ↦ 126 127 } 128 #endif 127 129 //****************************************************************************** 128 130 //****************************************************************************** … … 134 136 { 135 137 struct proc_dir_entry *proc; 136 137 138 proc = (struct proc_dir_entry *)kmalloc(sizeof(struct proc_dir_entry), 0); 138 139 memset(proc, 0, sizeof(struct proc_dir_entry)); … … 218 219 //****************************************************************************** 219 220 //****************************************************************************** 220 void *snd_compat_kcalloc(size_t n, size_t size, int flags)221 {222 void *ret = NULL;223 224 if (n != 0 && size > INT_MAX / n)225 return ret;226 227 ret = kmalloc(n * size, flags);228 if (ret)229 memset(ret, 0, n * size);230 return ret;231 }232
Note:
See TracChangeset
for help on using the changeset viewer.