FS: JFS: Check for read-only mounted filesystem in txBegin

[ Upstream commit 95e2b352c0 ]

 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Immad Mir 2023-06-23 19:17:08 +05:30 • committed by Greg Kroah-Hartman
commit b0ed8ed042