In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is
assigned to modeset->mode, which will lead to a possible NULL pointer
dereference on failure of drm_mode_duplicate(). Add a check to avoid npd.
Cc: stable(a)vger.kernel.org
Fixes: cf13909aee05 ("drm/fb-helper: Move out modeset config code")
Signed-off-by: Ma Ke <make24(a)iscas.ac.cn>
---
Changes in v3:
- modified patch as suggestions, returned error directly when failing to
get modeset->mode.
Changes in v2:
- added the recipient's email address, due to the prolonged absence of a
response from the recipients.
- added Cc stable.
---
drivers/gpu/drm/drm_client_modeset.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_client_modeset.c
index 31af5cf37a09..750b8dce0f90 100644
--- a/drivers/gpu/drm/drm_client_modeset.c
+++ b/drivers/gpu/drm/drm_client_modeset.c
@@ -880,6 +880,9 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width,
kfree(modeset->mode);
modeset->mode = drm_mode_duplicate(dev, mode);
+ if (!modeset->mode)
+ return 0;
+
drm_connector_get(connector);
modeset->connectors[modeset->num_connectors++] = connector;
modeset->x = offset->x;
--
2.25.1
On Wed 2024-07-24 18:48:20, DAVIETTE wrote:
> Afternoon:
>
> Has any test on incorporation of muti platform data been seen using the PATCH file ?
>
> Will the install cause support default models to reset.
>
> Any other information is welcomed and appreciated, Thanks.
>
> D.Lauricella
Has spam gotten smart with use of AI, or is this real?
Can you fix your mailer to to generate in-reply-to headers and try
again stating your question?
BR,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Commit 3b52093dc917 ("rtc: ds1343: Do not hardcode SPI mode flags")
bit-flips (^=) the existing SPI_CS_HIGH setting in the SPI mode during
device probe. This will set it to the wrong value if the spi-cs-high
property has been set in the devicetree node. Just force it to be set
active high and get rid of some commentary that attempted to explain why
flipping the bit was the correct choice.
Fixes: 3b52093dc917 ("rtc: ds1343: Do not hardcode SPI mode flags")
Cc: <stable(a)vger.kernel.org> # 5.6+
Cc: Linus Walleij <linus.walleij(a)linaro.org>
Cc: Mark Brown <broonie(a)kernel.org>
Signed-off-by: Ian Abbott <abbotti(a)mev.co.uk>
---
drivers/rtc/rtc-ds1343.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/rtc/rtc-ds1343.c b/drivers/rtc/rtc-ds1343.c
index ed5a6ba89a3e..484b5756b55c 100644
--- a/drivers/rtc/rtc-ds1343.c
+++ b/drivers/rtc/rtc-ds1343.c
@@ -361,13 +361,10 @@ static int ds1343_probe(struct spi_device *spi)
if (!priv)
return -ENOMEM;
- /* RTC DS1347 works in spi mode 3 and
- * its chip select is active high. Active high should be defined as
- * "inverse polarity" as GPIO-based chip selects can be logically
- * active high but inverted by the GPIO library.
+ /*
+ * RTC DS1347 works in spi mode 3 and its chip select is active high.
*/
- spi->mode |= SPI_MODE_3;
- spi->mode ^= SPI_CS_HIGH;
+ spi->mode |= SPI_MODE_3 | SPI_CS_HIGH;
spi->bits_per_word = 8;
res = spi_setup(spi);
if (res)
--
2.43.0
This is the start of the stable review cycle for the 6.10.1 release.
There are 11 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Thu, 25 Jul 2024 12:28:30 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.10.1-rc2…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.10.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 6.10.1-rc2
Rafael J. Wysocki <rafael.j.wysocki(a)intel.com>
thermal: core: Allow thermal zones to tell the core to ignore them
Pavel Begunkov <asml.silence(a)gmail.com>
io_uring: fix error pbuf checking
Richard Fitzgerald <rf(a)opensource.cirrus.com>
ASoC: cs35l56: Limit Speaker Volume to +12dB maximum
Richard Fitzgerald <rf(a)opensource.cirrus.com>
ASoC: cs35l56: Use header defines for Speaker Volume control definition
Hao Ge <gehao(a)kylinos.cn>
tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
David Howells <dhowells(a)redhat.com>
cifs: Fix setting of zero_point after DIO write
David Howells <dhowells(a)redhat.com>
cifs: Fix server re-repick on subrequest retry
Steve French <stfrench(a)microsoft.com>
cifs: fix noisy message on copy_file_range
David Howells <dhowells(a)redhat.com>
cifs: Fix missing fscache invalidation
David Howells <dhowells(a)redhat.com>
cifs: Fix missing error code set
Kees Cook <kees(a)kernel.org>
ext4: use memtostr_pad() for s_volume_name
-------------
Diffstat:
Makefile | 4 +--
drivers/char/tpm/tpm2-sessions.c | 5 +--
drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 7 +++-
drivers/thermal/thermal_core.c | 51 ++++++++++++++---------------
drivers/thermal/thermal_core.h | 3 ++
drivers/thermal/thermal_helpers.c | 2 ++
fs/ext4/ext4.h | 2 +-
fs/ext4/ioctl.c | 2 +-
fs/smb/client/cifsfs.c | 2 +-
fs/smb/client/file.c | 21 +++++++++---
fs/smb/client/smb2pdu.c | 3 --
include/sound/cs35l56.h | 2 +-
io_uring/kbuf.c | 4 ++-
sound/soc/codecs/cs35l56.c | 6 +++-
14 files changed, 69 insertions(+), 45 deletions(-)
I'm announcing the release of the 6.10.1 kernel.
All users of the 6.10 kernel series must upgrade.
The updated 6.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.10.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 -
drivers/char/tpm/tpm2-sessions.c | 5 +-
drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 7 +++
drivers/thermal/thermal_core.c | 51 +++++++++++++---------------
drivers/thermal/thermal_core.h | 3 +
drivers/thermal/thermal_helpers.c | 2 +
fs/ext4/ext4.h | 2 -
fs/ext4/ioctl.c | 2 -
fs/smb/client/cifsfs.c | 2 -
fs/smb/client/file.c | 21 +++++++++--
fs/smb/client/smb2pdu.c | 3 -
include/sound/cs35l56.h | 2 -
io_uring/kbuf.c | 4 +-
sound/soc/codecs/cs35l56.c | 6 ++-
14 files changed, 68 insertions(+), 44 deletions(-)
David Howells (4):
cifs: Fix missing error code set
cifs: Fix missing fscache invalidation
cifs: Fix server re-repick on subrequest retry
cifs: Fix setting of zero_point after DIO write
Greg Kroah-Hartman (1):
Linux 6.10.1
Hao Ge (1):
tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
Kees Cook (1):
ext4: use memtostr_pad() for s_volume_name
Pavel Begunkov (1):
io_uring: fix error pbuf checking
Rafael J. Wysocki (1):
thermal: core: Allow thermal zones to tell the core to ignore them
Richard Fitzgerald (2):
ASoC: cs35l56: Use header defines for Speaker Volume control definition
ASoC: cs35l56: Limit Speaker Volume to +12dB maximum
Steve French (1):
cifs: fix noisy message on copy_file_range
I'm announcing the release of the 6.10.1 kernel.
All users of the 6.10 kernel series must upgrade.
The updated 6.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.10.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 -
drivers/char/tpm/tpm2-sessions.c | 5 +-
drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 7 +++
drivers/thermal/thermal_core.c | 51 +++++++++++++---------------
drivers/thermal/thermal_core.h | 3 +
drivers/thermal/thermal_helpers.c | 2 +
fs/ext4/ext4.h | 2 -
fs/ext4/ioctl.c | 2 -
fs/smb/client/cifsfs.c | 2 -
fs/smb/client/file.c | 21 +++++++++--
fs/smb/client/smb2pdu.c | 3 -
include/sound/cs35l56.h | 2 -
io_uring/kbuf.c | 4 +-
sound/soc/codecs/cs35l56.c | 6 ++-
14 files changed, 68 insertions(+), 44 deletions(-)
David Howells (4):
cifs: Fix missing error code set
cifs: Fix missing fscache invalidation
cifs: Fix server re-repick on subrequest retry
cifs: Fix setting of zero_point after DIO write
Greg Kroah-Hartman (1):
Linux 6.10.1
Hao Ge (1):
tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
Kees Cook (1):
ext4: use memtostr_pad() for s_volume_name
Pavel Begunkov (1):
io_uring: fix error pbuf checking
Rafael J. Wysocki (1):
thermal: core: Allow thermal zones to tell the core to ignore them
Richard Fitzgerald (2):
ASoC: cs35l56: Use header defines for Speaker Volume control definition
ASoC: cs35l56: Limit Speaker Volume to +12dB maximum
Steve French (1):
cifs: fix noisy message on copy_file_range