Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4327 → Rev 4581

/branches/network/kernel/arch/sparc64/src/drivers/sgcn.c
279,7 → 279,7
*/
void sgcn_grab(void)
{
kbd_disabled = true;
kbd_disabled = false;
}
 
/**
341,18 → 341,19
sgcn_instance_t *sgcnin_init(void)
{
sgcn_buffer_begin_init();
 
sgcn_instance_t *instance =
malloc(sizeof(sgcn_instance_t), FRAME_ATOMIC);
if (!instance)
return NULL;
 
instance->srlnin = NULL;
instance->thread = thread_create(ksgcnpoll, instance, TASK, 0,
"ksgcnpoll", true);
if (!instance->thread) {
free(instance);
return NULL;
if (instance) {
instance->srlnin = NULL;
instance->thread = thread_create(ksgcnpoll, instance, TASK, 0,
"ksgcnpoll", true);
if (!instance->thread) {
free(instance);
return NULL;
}
}
return instance;