search for: tv_mode

Displaying 4 results from an estimated 4 matches for "tv_mode".

2023 Oct 07
1
[PATCH] drm/nouveau/dispnv04: fix a possible null pointer dereference
...index 670c9739e5e1..4a08e61f3336 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c @@ -209,6 +209,8 @@ static int nv17_tv_get_ld_modes(struct drm_encoder *encoder, struct drm_display_mode *mode; mode = drm_mode_duplicate(encoder->dev, tv_mode); + if (!mode) + continue; mode->clock = tv_norm->tv_enc_mode.vrefresh * mode->htotal / 1000 * -- 2.37.2
2024 Jun 25
0
[PATCH] drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_ld_modes
...00644 > --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c > +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c > @@ -209,6 +209,8 @@ static int nv17_tv_get_ld_modes(struct > drm_encoder *encoder, > ? struct drm_display_mode *mode; > ? > ? mode = drm_mode_duplicate(encoder->dev, tv_mode); > + if (!mode) > + continue; > ? > ? mode->clock = tv_norm->tv_enc_mode.vrefresh * > ? mode->htotal / 1000 * -- Cheers, Lyude Paul (she/her) Software Engineer at Red Hat
2009 Aug 13
9
[PATCHv2 01/10] drm/nouveau: Fix a lock up at NVSetOwner with nv11.
It seems it was only locking up in the context of nouveau_hw_save_vga_fonts, when it actually did something (because the console wasn't already in graphics mode). Signed-off-by: Francisco Jerez <currojerez at riseup.net> --- drivers/gpu/drm/nouveau/nouveau_hw.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.c
2009 Aug 12
14
[PATCH 00/12] TV-out modesetting kernel patches.
...ers/gpu/drm/nouveau/nv04_output.c | 797 --------------------------- drivers/gpu/drm/nouveau/nv04_tv.c | 306 ++++++++++ drivers/gpu/drm/nouveau/nv17_tv.c | 623 +++++++++++++++++++++ drivers/gpu/drm/nouveau/nv17_tv.h | 151 +++++ drivers/gpu/drm/nouveau/nv17_tv_modes.c | 580 +++++++++++++++++++ drivers/gpu/drm/nouveau/nv50_crtc.c | 2 +- drivers/gpu/drm/nouveau/nv50_dac.c | 18 +- drivers/gpu/drm/nouveau/nv50_sor.c | 28 +- drivers/gpu/drm/nouveau/nvreg.h | 38 ++- include/drm/drm_crtc.h...