On Mon, Jun 24, 2019 at 10:44:33AM +0200, Daniel Vetter wrote: > On Mon, Jun 24, 2019 at 10:40:16AM +0200, Maxime Ripard wrote: > > The commit 3aeeb13d8996 ("drm/modes: Support modes names on the command > > line") added name support to the DRM modes, and added that name to the > > debug message. > > > > However, that code tests for whether or not the name variable is NULL and > > only prints it if it's not. Except that that variable is an array, so it > > will never be NULL. > > > > The original intent was to print it only when the name has been specified. > > Just printing the array directly will achieve the same thing since the > > drm_cmdline_mode structure that holds it is itself contained in > > drm_connector, that is allocated with its whole content zero'd. > > > > That means that if the name is not declared, the array will be all zeros, > > which will not print anything. > > > > Cc: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> > > Reported-by: kbuild test robot <lkp@xxxxxxxxx> > > Fixes: 3aeeb13d8996 ("drm/modes: Support modes names on the command line") > > Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxx> > > Reviewed-by: Daniel Vetter <daniel.vetter@xxxxxxxx> Applied, Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel