kobject: Export kobject_get_unless_zero()
authorJan Kara <jack@suse.cz>
Thu, 23 Mar 2017 00:37:01 +0000 (01:37 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:03:16 +0000 (19:03 +0100)
commitf0ad2031d82fe550c4b34aed5dbc84e2febd021b
treea0190797855a0c50539e137229e128663fa82b91
parent5d6c167fb5498bc3c32dfcb37f144ceb5c2d9138
kobject: Export kobject_get_unless_zero()

commit c70c176ff8c3ff0ac6ef9a831cd591ea9a66bd1a upstream.

Make the function available for outside use and fortify it against NULL
kobject.

CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/linux/kobject.h
lib/kobject.c