xen-netback: fix debugfs write length check
authorWei Liu <[email protected]>
Tue, 12 Aug 2014 10:59:29 +0000 (11:59 +0100)
committerDavid S. Miller <[email protected]>
Thu, 14 Aug 2014 03:06:43 +0000 (20:06 -0700)
commit5c807005fa60deef2db6616d9b7b24fc4c436be9
tree6e1ca61dc320ede63d38b91def87edeaae31a30c
parent490cc7d03c21871eef5949ba77a18b0c7ef70ef5
xen-netback: fix debugfs write length check

Enlarge buffer size and check input length properly, so that we don't
misuse -ENOSPC.

Note that command like "kickXXXX" is still allowed, that's one patch for
another day if we really want to be very strict on this.

Reported-by: SeeChen Ng <[email protected]>
Signed-off-by: Wei Liu <[email protected]>
Cc: Zoltan Kiss <[email protected]>
Cc: Ian Campbell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/xen-netback/xenbus.c