title: How to check a memory address is valid inside Linux kernel?
body: <p>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??</p>