diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 28d2bd596..ce04dcec2 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -109,7 +109,7 @@ function specialize_patch { if [ "${enable_specialize}" = "true" ]; then "$(dirname $0)/specialize-patch" \ ${specialize_patch_options} \ - -v kernel_version="${kver}" \ + -v kernel_version="${full_kver}" \ -v SCSI_EXEC_REQ_FIFO_DEFINED="${scsi_exec_req_fifo_defined}" \ -v SCST_IO_CONTEXT="${scst_io_context}" \ | if [ "${generating_upstream_patch}" = "true" ]; then @@ -209,6 +209,7 @@ if [ $# != 1 ]; then fi # Strip patch level from the kernel version number. +full_kver="$1" kver="$(kernel_version "$1")" # Include fcst in the patch for kernel versions 2.6.33 and later.