logo       

[Kernel-janitors] kobject_set_name(), return never checked: msg#00221

Subject: [Kernel-janitors] kobject_set_name(), return never checked
Hi list,
i have noticed that the returncode of kobject_set_name() is
not checked for errors (read: i did not find any who does). therefor i would 
suggest a wrapper like:

void kobject_set_name() 
{
if (real_kobject_set_name()<0)
 error_message;
}

This will not solve the problem, not checking for error is bad, but should work 
as a quick fix.


Is that an aceptable fix ? Other solutions ?

regards,
walter
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@xxxxxxxxxxxxxx
http://lists.osdl.org/mailman/listinfo/kernel-janitors
<Prev in Thread] Current Thread [Next in Thread>