adjust the patch for current kernel and update config