| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/3 V2] xfs: convert mount option parsing to tokens |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Wed, 17 Feb 2016 08:54:09 -0800 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <56C2412B.9040603@xxxxxxxxxxx> |
| References: | <56BBC982.50804@xxxxxxxxxx> <56BBC9E6.5030100@xxxxxxxxxxx> <56C2412B.9040603@xxxxxxxxxxx> |
| User-agent: | Mutt/1.5.24 (2015-08-30) |
> -suffix_kstrtoint(char *s, unsigned int base, int *res)
> +suffix_kstrtoint(const substring_t *s, unsigned int base, int *res)
> {
> int last, shift_left_factor = 0, _res;
> - char *value = s;
> + char *value = match_strdup(s);
> + int ret = 0;
> +
Needs to check for a NULL return value.
Otherwise looks fine:
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: oss.sgi.com - maintenance - rescheduled Fri Feb 19 09:00 CT USA, Troy McCorkell |
|---|---|
| Next by Date: | Re: [PATCH 2/3 V2] xfs: sanitize remount options, Christoph Hellwig |
| Previous by Thread: | [PATCH 1/3 V2] xfs: convert mount option parsing to tokens, Eric Sandeen |
| Next by Thread: | [PATCH 1/3 V3] xfs: convert mount option parsing to tokens, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |