Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337484
b: refs/heads/master
c: 2690784
h: refs/heads/master
v: v3
  • Loading branch information
Sergey Senozhatsky authored and Greg Kroah-Hartman committed Oct 31, 2012
1 parent b88acbf commit 15068c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37b51fdddf64e7ba0971d070428655f8d6f36578
refs/heads/master: 26907840e63b3187266db1865e76ea9e98b01b19
8 changes: 4 additions & 4 deletions trunk/drivers/staging/zram/zram_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/device.h>
#include <linux/genhd.h>
#include <linux/mm.h>
#include <linux/kernel.h>

#include "zram_drv.h"

Expand Down Expand Up @@ -54,13 +55,12 @@ static ssize_t disksize_show(struct device *dev,
static ssize_t disksize_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len)
{
int ret;
u64 disksize;
struct zram *zram = dev_to_zram(dev);

ret = kstrtoull(buf, 10, &disksize);
if (ret)
return ret;
disksize = memparse(buf, NULL);
if (!disksize)
return -EINVAL;

down_write(&zram->init_lock);
if (zram->init_done) {
Expand Down

0 comments on commit 15068c3

Please sign in to comment.