diff --git a/meta-oe/recipes-support/nspr/nspr/0003-Add-nios2-support.patch b/meta-oe/recipes-support/nspr/nspr/0003-Add-nios2-support.patch
index 3d1bbd31a7..c9546321bc 100644
--- a/meta-oe/recipes-support/nspr/nspr/0003-Add-nios2-support.patch
+++ b/meta-oe/recipes-support/nspr/nspr/0003-Add-nios2-support.patch
@@ -9,15 +9,13 @@ Upstream-Status: Submitted [ https://bugzilla.mozilla.org/show_bug.cgi?id=124442
 
 Signed-off-by: Marek Vasut <marex@denx.de>
 ---
- pr/include/md/_linux.cfg | 45 ++++++++++++++++++++++++++++++++++++++++
- pr/include/md/_linux.h   |  4 +++-
+ pr/include/md/_linux.cfg |   45 +++++++++++++++++++++++++++++++++++++++++++++
+ pr/include/md/_linux.h   |    4 +++-
  2 files changed, 48 insertions(+), 1 deletion(-)
 
-diff --git a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg
-index 009d5e5..77c13df 100644
 --- a/pr/include/md/_linux.cfg
 +++ b/pr/include/md/_linux.cfg
-@@ -979,6 +979,51 @@
+@@ -978,6 +978,51 @@
  #define PR_BYTES_PER_WORD_LOG2   2
  #define PR_BYTES_PER_DWORD_LOG2  3
  
@@ -69,11 +67,9 @@ index 009d5e5..77c13df 100644
  #elif defined(__or1k__)
  
  #undef  IS_LITTLE_ENDIAN
-diff --git a/pr/include/md/_linux.h b/pr/include/md/_linux.h
-index ad57d08..45a2231 100644
 --- a/pr/include/md/_linux.h
 +++ b/pr/include/md/_linux.h
-@@ -55,6 +55,8 @@
+@@ -54,6 +54,8 @@
  #define _PR_SI_ARCHITECTURE "avr32"
  #elif defined(__m32r__)
  #define _PR_SI_ARCHITECTURE "m32r"
@@ -82,8 +78,8 @@ index ad57d08..45a2231 100644
  #elif defined(__or1k__)
  #define _PR_SI_ARCHITECTURE "or1k"
  #elif defined(__riscv) && (__riscv_xlen == 32)
-@@ -143,7 +145,7 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
- #define _MD_ATOMIC_SET                _PR_x86_64_AtomicSet
+@@ -142,7 +144,7 @@
+ #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet
  #endif
  
 -#if defined(__loongarch__)
@@ -91,6 +87,3 @@ index ad57d08..45a2231 100644
  #if defined(__GNUC__)
  /* Use GCC built-in functions */
  #define _PR_HAVE_ATOMIC_OPS
--- 
-2.25.1
-
diff --git a/meta-oe/recipes-support/nspr/nspr_4.39.bb b/meta-oe/recipes-support/nspr/nspr_4.40.bb
similarity index 98%
rename from meta-oe/recipes-support/nspr/nspr_4.39.bb
rename to meta-oe/recipes-support/nspr/nspr_4.40.bb
index 39083c2f66..c962c779e3 100644
--- a/meta-oe/recipes-support/nspr/nspr_4.39.bb
+++ b/meta-oe/recipes-support/nspr/nspr_4.40.bb
@@ -23,7 +23,7 @@ CACHED_CONFIGUREVARS:append:libc-musl = " CFLAGS='${CFLAGS} -D_PR_POLL_AVAILABLE
 UPSTREAM_CHECK_URI = "http://ftp.mozilla.org/pub/nspr/releases/"
 UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)/"
 
-SRC_URI[sha256sum] = "bbd02ee87a55676063a63e5bc819e0227de2666b47307b2a0134414cdf42368e"
+SRC_URI[sha256sum] = "c0c1884c627f3db7a783f7c7314c695226b2043696791d15519e7e0578c19bdc"
 
 CVE_PRODUCT = "netscape_portable_runtime"
 
