Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dibs: Check correct variable in dibs_init()

There is a typo in this code. It should check "dibs_class" instead of
"&dibs_class". Remove the &.

Fixes: 804737349813 ("dibs: Create class dibs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/aNP-XcrjSUjZAu4a@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Dan Carpenter and committed by
Jakub Kicinski
231889d9 72bc3807

+2 -2
+2 -2
drivers/dibs/dibs_main.c
··· 258 258 max_client = 0; 259 259 260 260 dibs_class = class_create("dibs"); 261 - if (IS_ERR(&dibs_class)) 262 - return PTR_ERR(&dibs_class); 261 + if (IS_ERR(dibs_class)) 262 + return PTR_ERR(dibs_class); 263 263 264 264 rc = dibs_loopback_init(); 265 265 if (rc)