FS: JFS: Check for read-only mounted filesystem in txBegin
authorImmad Mir <mirimmad17@gmail.com>
Fri, 23 Jun 2023 13:47:08 +0000 (19:17 +0530)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Fri, 23 Jun 2023 14:02:33 +0000 (09:02 -0500)
commit95e2b352c03b0a86c5717ba1d24ea20969abcacc
tree053e77eaf31df4d06678888bc066f7d0ae848748
parent47cfdc338d674d38f4b2f22b7612cc6a2763ba27
FS: JFS: Check for read-only mounted filesystem in txBegin

 This patch adds a check for read-only mounted filesystem
 in txBegin before starting a transaction potentially saving
 from NULL pointer deref.

Signed-off-by: Immad Mir <mirimmad17@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_txnmgr.c