[patch] staging: rtl8712: remove unneeded NULL check

2013-09-28 Thread Dan Carpenter
We knew peventbuf was a valid pointer and peventbuf + 2 is also non-NULL. I have removed the check. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/rtl8712/rtl8712_cmd.c b/drivers/staging/rtl8712/rtl8712_cmd.c index 088647c..53f247b 100644 ---

Re: Reworking dm-writeboost [was: Re: staging: Add dm-writeboost]

2013-09-28 Thread Akira Hayakawa
Hi, Two major progress: 1) .ctr accepts segment size so .ctr now accepts 3 arguments: backing dev cache dev segment size order. 2) fold the small files splitted that I suggested in the previous progress report. For 1) I use zero length array to dynamically accept the segment size. writeboost

Re: [PATCHv2 0/11] staging: usbip: Userland crypto and ACLs

2013-09-28 Thread Dominik Paulus
On Wed, Sep 25, 2013 at 04:36:38PM -0700, Greg Kroah-Hartman wrote: Only the first patch could be applied. Can you refresh this series, and your other one (fixing the issues pointed out there), and resend them please? We've incorporated all of Dan's fixes and suggestions and rebased the whole

[PATCHv3 04/16] staging: usbip: Add ACL support to usbip bind

2013-09-28 Thread Dominik Paulus
Add the command line argument -a (--allow) to usbip bind to specify networks allowed to attach to the device and code to store the ACLs in sysfs. Signed-off-by: Kurt Kanzenbach ly80t...@cip.cs.fau.de Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer

[PATCHv3 02/16] staging: usbip: Add kernel support for client ACLs

2013-09-28 Thread Dominik Paulus
This patch adds the possibility to stored ACLs for allowed clients for each stub device in sysfs. It adds a new sysfs entry called usbip_acl for each stub device, containing a list of CIDR masks of allowed clients. This file will be used by usbip and usbipd to store the ACL. Signed-off-by: Kurt

[PATCHv3 03/16] staging: usbip: Add CIDR matching helper functions

2013-09-28 Thread Dominik Paulus
This patch adds a few utility functions to match IP addresses against CIDR masks. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de --- drivers/staging/usbip/userspace/src/utils.c | 84 +

[PATCHv3 05/16] staging: usbip: Add support for ACLs in usbipd

2013-09-28 Thread Dominik Paulus
Interpret the ACLs stored in sysfs in usbipd and reject clients not matching one of the ACLs. Signed-off-by: Kurt Kanzenbach ly80t...@cip.cs.fau.de Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de ---

[PATCHv3 16/16] staging: usbip: Increment version number to 1.2.1

2013-09-28 Thread Dominik Paulus
Also increment the kernel module version number to match the userspace version, as compatibility with old userspace utilities is now at least partially broken. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de ---

[PATCHv3 09/16] staging: usbip: Separate protocol/program version

2013-09-28 Thread Dominik Paulus
Not all new program versions necessarily introduce non-backwards-compatible protocol changes. We thus move the definition of the protocol version from configure.ac to usbip_network.h, where it logically belongs to. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer

[PATCHv3 12/16] staging: usbip: Pass session keys to the kernel

2013-09-28 Thread Dominik Paulus
This extends the userspace code to write the generated session keys to sysfs in hexadecimal encoding after establishing the connection. The kernel code is modified to parse the session keys. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de ---

[PATCHv3 10/16] staging: usbip: TLS for all userspace communication

2013-09-28 Thread Dominik Paulus
This patch extends the TLS support to cover all communication in userspace. The TLS connection is released shortly before the socket is passed to the kernel. This requires for additional connection state to be passed between functions. We thus replaced the sockfd by a struct containing the TLS

[PATCHv3 07/16] staging: usbip: Handle usbip being started as user

2013-09-28 Thread Dominik Paulus
usbip now prints an error message when started as user and requiring root access. Also, some debug messages are changed to error messages so the command line utilities now print less confusing (and more verbose) error messages when not used correctly. Signed-off-by: Dominik Paulus

[PATCHv3 13/16] staging: usbip: Wrap kernel_sendmsg()/recvmsg()

2013-09-28 Thread Dominik Paulus
This adds two simple wrappers around kernel_sendmsg() and kernel_recvmsg() that can be extended to perform additional cryptographic operations on the data before sending it. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de ---

[PATCHv3 08/16] staging: usbip: Improve debug output

2013-09-28 Thread Dominik Paulus
For IPv6, IP:Port is unreadable. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de --- drivers/staging/usbip/userspace/src/usbipd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/src/usbipd.c

Re: [PATCH 1/2] staging: octeon-ethernet: don't assume that CPU 0 is special

2013-09-28 Thread Aaro Koskinen
Hi, On Sat, Sep 28, 2013 at 10:40:47PM +0200, Richard Weinberger wrote: Am 28.09.2013 21:50, schrieb Aaro Koskinen: Currently the driver assumes that CPU 0 is handling all the hard IRQs. This is wrong in Linux SMP systems where user is allowed to assign to hardware IRQs to any CPU. The