PM / hibernate: cast PAGE_SIZE to int when comparing with error code
authorChengguang Xu <cgxu519@gmx.com>
Mon, 25 Jun 2018 05:30:58 +0000 (13:30 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Jul 2018 09:48:30 +0000 (11:48 +0200)
commitd5641c64c48f4408500a348301bff01fbf2c1ec5
treecec4b8bb9b9319b43a4bd0f2ddb0d61285800b47
parent021c91791a5e7e85c567452f1be3e4c2c6cb6063
PM / hibernate: cast PAGE_SIZE to int when comparing with error code

If PAGE_SIZE is unsigned type then negative error code will be
larger than PAGE_SIZE.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/swap.c