Hi,

I am using 'alloc_chrdev_region' for registering char device range and then
'unregister_chrdev_region' for un-registering it.
But on each insmod I am getting MAJOR number as one less then that of
previous time.

On seeing the code (unregister_chrdev_region) it seems that it just kfree
the chrdevs[] entry but not set it to NULL which cause for new
entry in chrdevs[].

Thanks,
Chetan Nanda

Reply via email to