# | Line 249 | Line 249 | static int build_mapping(){ | |
---|---|---|
249 | if (x>=BIG_ENOUGH){ | |
250 | /* We've got bigger than we thought was massive */ | |
251 | /* If we hit this.. Make big enough bigger */ | |
252 | + | kstat_close(kc); |
253 | return -1; | |
254 | } | |
255 | if( !strncmp(driver_list[x], device_name, BIG_ENOUGH)){ | |
# | Line 259 | Line 260 | static int build_mapping(){ | |
260 | ||
261 | if(!found){ | |
262 | if((get_alias(device_name)) != 0){ | |
263 | + | kstat_close(kc); |
264 | return -1; | |
265 | } | |
266 | strncpy(driver_list[x], device_name, BIG_ENOUGH); | |
# | Line 266 | Line 268 | static int build_mapping(){ | |
268 | } | |
269 | } | |
270 | } | |
271 | + | |
272 | + | kstat_close(kc); |
273 | ||
274 | return 0; | |
275 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |