kernel_thread() returns the pid if successful, so the test for errors is to test for _negative_ values.
Attach a file by drag & drop or click to upload