aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/ssh_request_layer.c
diff options
context:
space:
mode:
authorMaximilian Luz <[email protected]>2021-06-04 21:09:06 +0000
committerHans de Goede <[email protected]>2021-06-16 15:47:54 +0000
commit37ed76a745b099565b4ae7915f0441b1316bf108 (patch)
treef7f2222734d2f1c1651a2e0b74466208bfcbb71a /drivers/platform/surface/aggregator/ssh_request_layer.c
parentdocs: driver-api: Update Surface Aggregator user-space interface documentation (diff)
downloadkernel-37ed76a745b099565b4ae7915f0441b1316bf108.tar.gz
kernel-37ed76a745b099565b4ae7915f0441b1316bf108.zip
platform/surface: aggregator: Do not return uninitialized value
The status variable in ssam_nf_refcount_disable_free() is only set when the reference count equals zero. Otherwise, it is returned uninitialized. Fix this by always initializing status to zero. Reported-by: kernel test robot <[email protected]> Fixes: 640ee17199e4 ("platform/surface: aggregator: Allow enabling of events without notifiers") Signed-off-by: Maximilian Luz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_request_layer.c')
0 files changed, 0 insertions, 0 deletions