Re: Try/catch for modules?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Galvan <omgalvan.86@xxxxxxxxx> writes:

> I'm writing a kernel module, and am trying to implement some
> exception-handling mechanism so that the system won't oops/panic if my
> module does e.g. a NULL dereference.

Why don't you test your pointer for NULL instead?  Sounds like a hell of
a lot simpler solution to me.  But I'm probably missing something as
usual...


Bjørn

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux