aboutsummaryrefslogtreecommitdiff
path: root/include/linux/dynamic_debug.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2021-05-06 16:00:47 +0200
committerGreg Kroah-Hartman <[email protected]>2021-05-13 18:58:44 +0200
commit9183f01b5e6e32eb3f17b5f3f8d5ad5ac9786c49 (patch)
tree5e6fef17393857f5bdf9b0e08ee6d7adc72f355e /include/linux/dynamic_debug.h
parent419b4a142a7ece36cebcd434f8ce2af59ef94b85 (diff)
cdrom: gdrom: initialize global variable at init time
As Peter points out, if we were to disconnect and then reconnect this driver from a device, the "global" state of the device would contain odd values and could cause problems. Fix this up by just initializing the whole thing to 0 at probe() time. Ideally this would be a per-device variable, but given the age and the total lack of users of it, that would require a lot of s/./->/g changes for really no good reason. Reported-by: Peter Rosin <[email protected]> Cc: Jens Axboe <[email protected]> Reviewed-by: Peter Rosin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/dynamic_debug.h')
0 files changed, 0 insertions, 0 deletions