summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-09-14 14:07:27 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 22:58:05 +0300
commit5dfbf6c51c72ede22975db1e2259c00ee0bfb7ff (patch)
tree72272b2693589a5b9f96928823beb08a83ef1d90 /scripts/stackusage
parentad62701720dd5d2a17c62f6c3bbd6ee629efcfaa (diff)
downloadlinux-5dfbf6c51c72ede22975db1e2259c00ee0bfb7ff.tar.xz
[media] rcar_drif: fix potential uninitialized variable use
Older compilers like gcc-4.6 may run into a case that returns an uninitialized variable from rcar_drif_enable_rx() if that function was ever called with an empty cur_ch_mask: drivers/media/platform/rcar_drif.c:658:2: error: ‘ret’ may be used uninitialized in this function [-Werror=uninitialized] Newer compilers don't have that problem as they optimize the 'ret' variable away and just return zero in that case. This changes the function to return -EINVAL for this particular failure, to make it consistent across all compiler versions. In case gcc gets changed to report a warning for it in the future, it's also a good idea to shut it up now. Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82203 Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions