All of lore.kernel.org
 help / color / mirror / Atom feed
* scull_init_module() in scull driver
@ 2015-04-07 12:14 Rock Lee
  0 siblings, 0 replies; only message in thread
From: Rock Lee @ 2015-04-07 12:14 UTC (permalink / raw)
  To: kernelnewbies

Hi, guys:
	I am reading function scull_init_module() in scull driver.I found that 
scull_init_module() doesn't check  scull_setup_cdev()'s return value.If 
there will be a probem when scull_setup_cdev() failed, and then, others 
call scull_cleanup_module()?

for (i = 0; i < scull_nr_devs; i++) {
	scull_devices[i].quantum = scull_quantum;
	scull_devices[i].qset = scull_qset;
	init_MUTEX(&scull_devices[i].sem);
	scull_setup_cdev(&scull_devices[i], i);
}

Best Regard
----
Rock Lee

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-07 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07 12:14 scull_init_module() in scull driver Rock Lee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.