]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/md/dm-log-userspace-transfer.c
usb: wusbcore: do device lookup while holding the hc mutex
[karo-tx-linux.git] / drivers / md / dm-log-userspace-transfer.c
index 1f23e048f07713846531d7e1e5ca62588a572d42..08d9a207259afdd6fc5ef92afeb403357c1e8a1c 100644 (file)
@@ -134,7 +134,7 @@ static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
 {
        struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1);
 
-       if (!cap_raised(current_cap(), CAP_SYS_ADMIN))
+       if (!capable(CAP_SYS_ADMIN))
                return;
 
        spin_lock(&receiving_list_lock);