The process to apply a patch it's very simple. Assuming that you have the kernel directory and the patch file like this:
- /usr/src/kernels (or where you have the kernel directory)
Depending off in which format did you have the patch (normally .gz, .bz2 or .xz), you need to use a different command to extract it. You need to go into
kernel_directory, and run the next command:
gzip -cd ../patch_file | patch -p1 - This for a gzip patch
bzip2 -cd ../patch_file | patch -p1 - This for a bzip patch
xz -cd ../patch_file | patch -p1 - This for a xz patch
It will apply the patch file
/usr/src/kernels/patch_file into the kernel
/usr/src/kernels/kernel_directory. You need to navigate first to the
/usr/src/kernels/kernel_directory and run the command from there.
Take in consideration make a copy of the kernel directory, so you can do the process with a copy of the kernel in backup to revert it easily.
NOTE: This is only the process to apply the patch, assuming that you are using the proper patch for your kernel, it shouldn't give any error. You need to have the patch file, like the kernel official one's.