Description of problem: malidp: Fix NULL vs IS_ERR() checking The get_sg_table() function does not return NULL. It returns error pointers. see upstream: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id= a5bbea50d622b8f49ab8ee3b0eb283107febcf1a