How to check a memory address is valid inside Linux kernel?

Viewed 2807

i am debugging a corrupt packet content inside Network driver. I want to dump a packet content inside network driver for debugging. Before that i want to check whether its address is accessible and valid inside kernel address space . Any API is available for the same other that NULL check??

1 Answers
Related